summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorFrancis Lavoie <lavofr@gmail.com>2022-08-02 16:39:09 -0400
committerGitHub <noreply@github.com>2022-08-02 16:39:09 -0400
commit141872ed80d6323505e7543628c259fdae8506d3 (patch)
tree53581cddf2fcce189c3a55019194b64b0cd3af13 /cmd
parentdb1aa5b5bc174e5a5df39a277f737b304e1e2350 (diff)
chore: Bump up to Go 1.19, minimum 1.18 (#4925)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/commandfuncs.go2
-rw-r--r--cmd/main.go2
-rw-r--r--cmd/packagesfuncs.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/cmd/commandfuncs.go b/cmd/commandfuncs.go
index 9e979ae..a4b7bdf 100644
--- a/cmd/commandfuncs.go
+++ b/cmd/commandfuncs.go
@@ -471,7 +471,7 @@ func cmdAdaptConfig(fl Flags) (int, error) {
fmt.Errorf("reading input file: %v", err)
}
- opts := map[string]interface{}{"filename": adaptCmdInputFlag}
+ opts := map[string]any{"filename": adaptCmdInputFlag}
adaptedConfig, warnings, err := cfgAdapter.Adapt(input, opts)
if err != nil {
diff --git a/cmd/main.go b/cmd/main.go
index f289b49..e5a4edf 100644
--- a/cmd/main.go
+++ b/cmd/main.go
@@ -173,7 +173,7 @@ func LoadConfig(configFile, adapterName string) ([]byte, string, error) {
// adapt config
if cfgAdapter != nil {
- adaptedConfig, warnings, err := cfgAdapter.Adapt(config, map[string]interface{}{
+ adaptedConfig, warnings, err := cfgAdapter.Adapt(config, map[string]any{
"filename": configFile,
})
if err != nil {
diff --git a/cmd/packagesfuncs.go b/cmd/packagesfuncs.go
index ca15ea3..3aed0e8 100644
--- a/cmd/packagesfuncs.go
+++ b/cmd/packagesfuncs.go
@@ -194,7 +194,7 @@ func getModules() (standard, nonstandard, unknown []moduleInfo, err error) {
// can use reflection but we need a non-pointer value (I'm
// not sure why), and since New() should return a pointer
// value, we need to dereference it first
- iface := interface{}(modInfo.New())
+ iface := any(modInfo.New())
if rv := reflect.ValueOf(iface); rv.Kind() == reflect.Ptr {
iface = reflect.New(reflect.TypeOf(iface).Elem()).Elem().Interface()
}