diff --git a/go.mod b/go.mod index 073c6114358..933e27706b1 100644 --- a/go.mod +++ b/go.mod @@ -18,7 +18,7 @@ require ( github.com/onsi/gomega v1.36.2 github.com/pkg/errors v0.9.1 github.com/rancher/yip v1.9.6 - github.com/sanity-io/litter v1.5.5 + github.com/sanity-io/litter v1.5.6 github.com/sirupsen/logrus v1.9.4-0.20230606125235-dd1b4c2e81af github.com/spf13/cobra v1.8.1 github.com/spf13/pflag v1.0.5 diff --git a/go.sum b/go.sum index 7ffe40e4dc8..a31000400c2 100644 --- a/go.sum +++ b/go.sum @@ -225,8 +225,8 @@ github.com/sagikazarmark/locafero v0.4.0 h1:HApY1R9zGo4DBgr7dqsTH/JJxLTTsOt7u6ke github.com/sagikazarmark/locafero v0.4.0/go.mod h1:Pe1W6UlPYUk/+wc/6KFhbORCfqzgYEpgQ3O5fPuL3H4= github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6gto+ugjYE= github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWRIczQRv+GVI1AkeQ= -github.com/sanity-io/litter v1.5.5 h1:iE+sBxPBzoK6uaEP5Lt3fHNgpKcHXc/A2HGETy0uJQo= -github.com/sanity-io/litter v1.5.5/go.mod h1:9gzJgR2i4ZpjZHsKvUXIRQVk7P+yM3e+jAF7bU2UI5U= +github.com/sanity-io/litter v1.5.6 h1:hCFycYzhRnW4niFbbmR7QKdmds69PbVa/sNmEN5euSU= +github.com/sanity-io/litter v1.5.6/go.mod h1:9gzJgR2i4ZpjZHsKvUXIRQVk7P+yM3e+jAF7bU2UI5U= github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww= github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= diff --git a/vendor/github.com/sanity-io/litter/dump.go b/vendor/github.com/sanity-io/litter/dump.go index 03e311edd98..78e5ea54039 100644 --- a/vendor/github.com/sanity-io/litter/dump.go +++ b/vendor/github.com/sanity-io/litter/dump.go @@ -471,12 +471,17 @@ func newDumpState(value reflect.Value, options *Options, writer io.Writer) *dump return result } -// Dump a value to stdout +// Dump a value to stdout. func Dump(value ...interface{}) { (&Config).Dump(value...) } -// Sdump dumps a value to a string +// D dumps a value to stdout, and is a shorthand for [Dump]. +func D(value ...interface{}) { + Dump(value...) +} + +// Sdump dumps a value to a string. func Sdump(value ...interface{}) string { return (&Config).Sdump(value...) } diff --git a/vendor/modules.txt b/vendor/modules.txt index 791a5b5bec6..90fd88439db 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -406,7 +406,7 @@ github.com/sagikazarmark/locafero # github.com/sagikazarmark/slog-shim v0.1.0 ## explicit; go 1.20 github.com/sagikazarmark/slog-shim -# github.com/sanity-io/litter v1.5.5 +# github.com/sanity-io/litter v1.5.6 ## explicit; go 1.16 github.com/sanity-io/litter # github.com/satori/go.uuid v1.2.0