diff --git a/go.mod b/go.mod index e4a701a..64d58fb 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/pepabo/onecli go 1.24 require ( - github.com/goccy/go-yaml v1.19.0 + github.com/goccy/go-yaml v1.19.1 github.com/onelogin/onelogin-go-sdk/v4 v4.7.0 github.com/spf13/cobra v1.10.2 github.com/stretchr/testify v1.11.1 diff --git a/go.sum b/go.sum index c7db14f..4d30b60 100644 --- a/go.sum +++ b/go.sum @@ -1,8 +1,8 @@ github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/goccy/go-yaml v1.19.0 h1:EmkZ9RIsX+Uq4DYFowegAuJo8+xdX3T/2dwNPXbxEYE= -github.com/goccy/go-yaml v1.19.0/go.mod h1:XBurs7gK8ATbW4ZPGKgcbrY1Br56PdM69F7LkFRi1kA= +github.com/goccy/go-yaml v1.19.1 h1:3rG3+v8pkhRqoQ/88NYNMHYVGYztCOCIZ7UQhu7H+NE= +github.com/goccy/go-yaml v1.19.1/go.mod h1:XBurs7gK8ATbW4ZPGKgcbrY1Br56PdM69F7LkFRi1kA= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/onelogin/onelogin-go-sdk/v4 v4.7.0 h1:iPVoGBK8RgjvYD0FzndIulbG7b0vdUfNdQKIPiDcU7w= diff --git a/utils/output.go b/utils/output.go index 9c661e5..905af7e 100644 --- a/utils/output.go +++ b/utils/output.go @@ -118,7 +118,7 @@ func formatFieldValue(field reflect.Value) string { return strconv.FormatBool(field.Bool()) case reflect.Struct: // time.Timeの場合はRFC3339形式で出力 - if field.Type() == reflect.TypeOf(time.Time{}) { + if field.Type() == reflect.TypeFor[time.Time]() { t := field.Interface().(time.Time) return t.Format(time.RFC3339) }