From d7fa41510ccfb05721cf20660aa17618cf6ba824 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 17 Dec 2025 21:18:34 +0000 Subject: [PATCH 1/2] build(deps): bump github.com/goccy/go-yaml from 1.19.0 to 1.19.1 Bumps [github.com/goccy/go-yaml](https://github.com/goccy/go-yaml) from 1.19.0 to 1.19.1. - [Release notes](https://github.com/goccy/go-yaml/releases) - [Changelog](https://github.com/goccy/go-yaml/blob/master/CHANGELOG.md) - [Commits](https://github.com/goccy/go-yaml/compare/v1.19.0...v1.19.1) --- updated-dependencies: - dependency-name: github.com/goccy/go-yaml dependency-version: 1.19.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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= From 5ec88b287192b5a34cb4a011cf621315a7be2f8e Mon Sep 17 00:00:00 2001 From: buty4649 Date: Thu, 18 Dec 2025 11:42:33 +0900 Subject: [PATCH 2/2] refactor: use reflect.TypeFor instead of reflect.TypeOf for time.Time MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace reflect.TypeOf(time.Time{}) with reflect.TypeFor[time.Time]() to follow Go 1.22+ best practices and resolve static analysis warnings. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- utils/output.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }