Skip to content

Commit

Permalink
Excavator: Manage go version (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
svc-excavator-bot authored Mar 18, 2022
1 parent d770bd1 commit 358588f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .palantir/go-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
go1.17.8
go1.18
24 changes: 12 additions & 12 deletions generated_src/internal/amalgomated_flag/flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (b *boolValue) Set(s string) error {
return err
}

func (b *boolValue) Get() interface{} { return bool(*b) }
func (b *boolValue) Get() any { return bool(*b) }

func (b *boolValue) String() string { return strconv.FormatBool(bool(*b)) }

Expand Down Expand Up @@ -152,7 +152,7 @@ func (i *intValue) Set(s string) error {
return err
}

func (i *intValue) Get() interface{} { return int(*i) }
func (i *intValue) Get() any { return int(*i) }

func (i *intValue) String() string { return strconv.Itoa(int(*i)) }

Expand All @@ -173,7 +173,7 @@ func (i *int64Value) Set(s string) error {
return err
}

func (i *int64Value) Get() interface{} { return int64(*i) }
func (i *int64Value) Get() any { return int64(*i) }

func (i *int64Value) String() string { return strconv.FormatInt(int64(*i), 10) }

Expand All @@ -194,7 +194,7 @@ func (i *uintValue) Set(s string) error {
return err
}

func (i *uintValue) Get() interface{} { return uint(*i) }
func (i *uintValue) Get() any { return uint(*i) }

func (i *uintValue) String() string { return strconv.FormatUint(uint64(*i), 10) }

Expand All @@ -215,7 +215,7 @@ func (i *uint64Value) Set(s string) error {
return err
}

func (i *uint64Value) Get() interface{} { return uint64(*i) }
func (i *uint64Value) Get() any { return uint64(*i) }

func (i *uint64Value) String() string { return strconv.FormatUint(uint64(*i), 10) }

Expand All @@ -232,7 +232,7 @@ func (s *stringValue) Set(val string) error {
return nil
}

func (s *stringValue) Get() interface{} { return string(*s) }
func (s *stringValue) Get() any { return string(*s) }

func (s *stringValue) String() string { return string(*s) }

Expand All @@ -253,7 +253,7 @@ func (f *float64Value) Set(s string) error {
return err
}

func (f *float64Value) Get() interface{} { return float64(*f) }
func (f *float64Value) Get() any { return float64(*f) }

func (f *float64Value) String() string { return strconv.FormatFloat(float64(*f), 'g', -1, 64) }

Expand All @@ -274,7 +274,7 @@ func (d *durationValue) Set(s string) error {
return err
}

func (d *durationValue) Get() interface{} { return time.Duration(*d) }
func (d *durationValue) Get() any { return time.Duration(*d) }

func (d *durationValue) String() string { return (*time.Duration)(d).String() }

Expand Down Expand Up @@ -305,7 +305,7 @@ type Value interface {
// by this package satisfy the Getter interface, except the type used by Func.
type Getter interface {
Value
Get() interface{}
Get() any
}

// ErrorHandling defines how FlagSet.Parse behaves if the parse fails.
Expand Down Expand Up @@ -456,7 +456,7 @@ func isZeroValue(flag *Flag, value string) bool {
// This works unless the Value type is itself an interface type.
typ := reflect.TypeOf(flag.Value)
var z reflect.Value
if typ.Kind() == reflect.Ptr {
if typ.Kind() == reflect.Pointer {
z = reflect.New(typ.Elem())
} else {
z = reflect.Zero(typ)
Expand Down Expand Up @@ -895,15 +895,15 @@ func Var(value Value, name string, usage string) {
}

// sprintf formats the message, prints it to output, and returns it.
func (f *FlagSet) sprintf(format string, a ...interface{}) string {
func (f *FlagSet) sprintf(format string, a ...any) string {
msg := fmt.Sprintf(format, a...)
fmt.Fprintln(f.Output(), msg)
return msg
}

// failf prints to standard error a formatted error and usage message and
// returns the error.
func (f *FlagSet) failf(format string, a ...interface{}) error {
func (f *FlagSet) failf(format string, a ...any) error {
msg := f.sprintf(format, a...)
f.usage()
return errors.New(msg)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/palantir/godel-okgo-asset-outparamcheck

go 1.17
go 1.18

require (
github.com/dustin/go-humanize v1.0.0
Expand Down
6 changes: 0 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJ
github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
github.com/nmiyake/pkg v0.0.0-20170627000939-b64318170fde/go.mod h1:1mqQ24p9iRljD6gKVkWOwMJRvbzgbyAtb0zALIt0lis=
github.com/nmiyake/pkg v1.0.0 h1:HLaVYtHDMpgvKKudovOE4lFaiudQNL+8Imr89hWrSZg=
github.com/nmiyake/pkg v1.0.0/go.mod h1:078BHtQj5Tk8Im6EpMHR0/Stp79lwL3FIRiGaC9hTDM=
github.com/nmiyake/pkg/dirs v1.0.0/go.mod h1:r6/PkZ3CA1szGfQkxcHheEjBWi6Zu6jLb+lQmRXEyvM=
github.com/nmiyake/pkg/dirs v1.0.2/go.mod h1:fVEsJ8Y8gFb14mbXq4iFQgzR19mMLEKA/lX3Y7Ccl3w=
Expand All @@ -189,10 +188,8 @@ github.com/nwaples/rardecode v1.0.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWk
github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U=
github.com/palantir/amalgomate v1.5.0 h1:wzqVjlu2Tzc2MOFCswjZcAU3c+SSYSVwlaTgczo0k18=
github.com/palantir/amalgomate v1.5.0/go.mod h1:GzTDudYKnad5BkqZjrDVRlvSvmpTjhjlSHNdTqZWyfs=
github.com/palantir/distgo/pkg/git v1.0.0/go.mod h1:eXrr3SOmf/sWTYmtiubYVxSaVegTlMGgRgBUFMFFedw=
github.com/palantir/godel v2.14.0+incompatible h1:votp3K0BDunem81cb8b3xdhFT/n3dgQ8q5mEzlso3d8=
github.com/palantir/godel v2.14.0+incompatible/go.mod h1:y5sjaV4I8yAOiKeuML5FxFHOpWvXCyPPj79/5PQLq0E=
github.com/palantir/godel/pkg/products/v2 v2.0.0/go.mod h1:SaLUycZLVP5qV6mL9MWG3jkX4dS23lJnzpubTGAV4FU=
github.com/palantir/godel/v2 v2.52.0 h1:p3Hf64WezG8jwAf9PiUYs/scRFqrD3RrOMJoePeCX/o=
github.com/palantir/godel/v2 v2.52.0/go.mod h1:lt0OkPpTCg5fcjhBWjjJtSCVHV1VMlVaSAY5SIArQAQ=
github.com/palantir/okgo v1.8.0 h1:13NJ0kCJWBWRG6B4tyKi+aAUQmLErVq/vhOJ/Loo9sE=
Expand All @@ -205,15 +202,12 @@ github.com/palantir/pkg v1.0.1 h1:ZbGUcc14N7xcZSY9cehQoiHHTm/BAZO5RJdlsNEtSbk=
github.com/palantir/pkg v1.0.1/go.mod h1:Eo6Jl0UXfT+65sLXJOcU9duu0WPvKsWFXCb0dE5VWZs=
github.com/palantir/pkg/cobracli v1.1.0 h1:dfBDc+FSrBnkNv96Ew9ROeks5JI4NxwD//Raas+zd6Y=
github.com/palantir/pkg/cobracli v1.1.0/go.mod h1:eaiBi7zgXa8AXlxH+hV4TNQlXbYY36xSFE9DdArG1MM=
github.com/palantir/pkg/gittest v1.0.0/go.mod h1:M49S4TsX5sh7lYJmOF+pFzcB4fJNOylzN8tOdpSq958=
github.com/palantir/pkg/gittest v1.0.1 h1:SMGj38NLGzEpW1LFfGAitWprywHorJTmfOpJS/9kv/Y=
github.com/palantir/pkg/gittest v1.0.1/go.mod h1:Rhmt7mtHdp+6c3gWZDAsXTBk5AUZwnfahsw5w6WWrbc=
github.com/palantir/pkg/matcher v1.0.0/go.mod h1:QCvRrP7D1ZwHguKkovtcPbr0i2L8GYXQxq9EUn/ME6s=
github.com/palantir/pkg/matcher v1.0.1 h1:+Q9oIaR7+jCni9Z+ZTAWXl71BBTpE6r+4t4D/FXwp4g=
github.com/palantir/pkg/matcher v1.0.1/go.mod h1:sd+kIUk+WUutEFrOkUFpSkxM9xJ49TnOQJ5c4UQeHUI=
github.com/palantir/pkg/pkgpath v1.0.1 h1:PEr0ZVJ+BCoC+Va2ean1wYz0bd3cv3HjhCoEIEVV5TU=
github.com/palantir/pkg/pkgpath v1.0.1/go.mod h1:kE+G+qpKWqWwUugXunfaSVetL65By6D2XlNv6ULXG5U=
github.com/palantir/pkg/signals v1.0.1/go.mod h1:L5/ZeqXa2QjdxpjqcMQ4LtZL3xCp1FMEhGjMHyLDb2g=
github.com/palantir/pkg/specdir v1.0.1 h1:h3FxhAYZHUAuvZXF5O40pyhjKjm4JlcHYRogIVNw3Ew=
github.com/palantir/pkg/specdir v1.0.1/go.mod h1:RJN42E0F1s4wHrNuXoT0cG4erUigMs0pjpBpmpijb0c=
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
Expand Down

0 comments on commit 358588f

Please sign in to comment.