summaryrefslogtreecommitdiff
path: root/internal/config
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2025-03-09 20:14:46 -0400
committerGitHub <noreply@github.com>2025-03-10 00:14:46 +0000
commitbfa6b9dcef7592e6dd8225aaa0d0ab5aef5b3f84 (patch)
tree7e844defee92dc3af320df20baa6f9b421d4a4c9 /internal/config
parent7942441e61471f578a57910b3aa93636f5a0310d (diff)
chore(refactoring): Refactor/modernizations (#2345)
chore(refactoring): Refactor with modernization refactorings * range over int * replace interface{} with any * replace common map operations with maps.Copy/maps.Clone * simplifying loops with slices.Contains/ContainsFunc * modernize benchmarks with b.Loop * modernize tests with t.Context * use fmt.Appendf * range over strings.SplitSeq * use new stdlib crypto/pbkdf2 package --------- Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'internal/config')
-rw-r--r--internal/config/types.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/config/types.go b/internal/config/types.go
index 022363f7..083b1c1e 100644
--- a/internal/config/types.go
+++ b/internal/config/types.go
@@ -73,7 +73,7 @@ func (t *Templates) unmarshalYAMLArray(value *yaml.Node) error {
return nil
}
-func (t Templates) MarshalYAML() (interface{}, error) {
+func (t Templates) MarshalYAML() (any, error) {
type rawTemplate struct {
Header http.Header `yaml:"header,omitempty,flow"`
URL string `yaml:"url"`
@@ -133,7 +133,7 @@ func (d *DataSource) UnmarshalYAML(value *yaml.Node) error {
// MarshalYAML - satisfy the yaml.Marshaler interface - URLs aren't
// well supported, and anyway we need to do some extra parsing
-func (d DataSource) MarshalYAML() (interface{}, error) {
+func (d DataSource) MarshalYAML() (any, error) {
type raw struct {
Header http.Header
URL string