Skip to content
Permalink
Browse files

Remove global method from Int64Slice Flag

  • Loading branch information
asahasrabuddhe committed Sep 16, 2019
1 parent a9d5b68 commit f12b8ca4e52c0a13dd0b6a3e7d6fd2a26a3502aa
Showing with 0 additions and 9 deletions.
  1. +0 −9 flag_int64_slice.go
@@ -148,15 +148,6 @@ func (c *Context) Int64Slice(name string) []int64 {
return lookupInt64Slice(name, c.flagSet)
}

// GlobalInt64Slice looks up the value of a global Int64SliceFlag, returns
// nil if not found
func (c *Context) GlobalInt64Slice(name string) []int64 {
if fs := lookupGlobalFlagSet(name, c); fs != nil {
return lookupInt64Slice(name, fs)
}
return nil
}

func lookupInt64Slice(name string, set *flag.FlagSet) []int64 {
f := set.Lookup(name)
if f != nil {

0 comments on commit f12b8ca

Please sign in to comment.
You can’t perform that action at this time.