Skip to content

Commit cb2eafd

Browse files
committed
Fix docs
1 parent 94ee95c commit cb2eafd

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

godoc-current.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,8 @@ func (f *Float64Slice) String() string
10381038
func (f *Float64Slice) Value() []float64
10391039
Value returns the slice of float64s set by this flag
10401040

1041+
func (f *Float64Slice) WithSeparatorSpec(spec separatorSpec)
1042+
10411043
type Float64SliceFlag struct {
10421044
Name string
10431045

@@ -1113,6 +1115,8 @@ func (f *Float64SliceFlag) String() string
11131115
func (f *Float64SliceFlag) TakesValue() bool
11141116
TakesValue returns true if the flag takes a value, otherwise false
11151117

1118+
func (f *Float64SliceFlag) WithSeparatorSpec(spec separatorSpec)
1119+
11161120
type Generic interface {
11171121
Set(value string) error
11181122
String() string
@@ -1279,6 +1283,8 @@ func (i *Int64Slice) String() string
12791283
func (i *Int64Slice) Value() []int64
12801284
Value returns the slice of ints set by this flag
12811285

1286+
func (i *Int64Slice) WithSeparatorSpec(spec separatorSpec)
1287+
12821288
type Int64SliceFlag struct {
12831289
Name string
12841290

@@ -1354,6 +1360,8 @@ func (f *Int64SliceFlag) String() string
13541360
func (f *Int64SliceFlag) TakesValue() bool
13551361
TakesValue returns true of the flag takes a value, otherwise false
13561362

1363+
func (f *Int64SliceFlag) WithSeparatorSpec(spec separatorSpec)
1364+
13571365
type IntFlag struct {
13581366
Name string
13591367

@@ -1449,6 +1457,8 @@ func (i *IntSlice) String() string
14491457
func (i *IntSlice) Value() []int
14501458
Value returns the slice of ints set by this flag
14511459

1460+
func (i *IntSlice) WithSeparatorSpec(spec separatorSpec)
1461+
14521462
type IntSliceFlag struct {
14531463
Name string
14541464

@@ -1524,6 +1534,8 @@ func (f *IntSliceFlag) String() string
15241534
func (f *IntSliceFlag) TakesValue() bool
15251535
TakesValue returns true of the flag takes a value, otherwise false
15261536

1537+
func (f *IntSliceFlag) WithSeparatorSpec(spec separatorSpec)
1538+
15271539
type InvalidFlagAccessFunc func(*Context, string)
15281540
InvalidFlagAccessFunc is executed when an invalid flag is accessed from the
15291541
context.
@@ -1792,6 +1804,8 @@ func (s *StringSlice) String() string
17921804
func (s *StringSlice) Value() []string
17931805
Value returns the slice of strings set by this flag
17941806

1807+
func (s *StringSlice) WithSeparatorSpec(spec separatorSpec)
1808+
17951809
type StringSliceFlag struct {
17961810
Name string
17971811

@@ -1869,6 +1883,8 @@ func (f *StringSliceFlag) String() string
18691883
func (f *StringSliceFlag) TakesValue() bool
18701884
TakesValue returns true of the flag takes a value, otherwise false
18711885

1886+
func (f *StringSliceFlag) WithSeparatorSpec(spec separatorSpec)
1887+
18721888
type SuggestCommandFunc func(commands []*Command, provided string) string
18731889

18741890
type SuggestFlagFunc func(flags []Flag, provided string, hideHelp bool) string
@@ -2063,6 +2079,8 @@ func (i *Uint64Slice) String() string
20632079
func (i *Uint64Slice) Value() []uint64
20642080
Value returns the slice of ints set by this flag
20652081

2082+
func (i *Uint64Slice) WithSeparatorSpec(spec separatorSpec)
2083+
20662084
type Uint64SliceFlag struct {
20672085
Name string
20682086

@@ -2129,6 +2147,8 @@ func (f *Uint64SliceFlag) String() string
21292147
func (f *Uint64SliceFlag) TakesValue() bool
21302148
TakesValue returns true of the flag takes a value, otherwise false
21312149

2150+
func (f *Uint64SliceFlag) WithSeparatorSpec(spec separatorSpec)
2151+
21322152
type UintFlag struct {
21332153
Name string
21342154

@@ -2224,6 +2244,8 @@ func (i *UintSlice) String() string
22242244
func (i *UintSlice) Value() []uint
22252245
Value returns the slice of ints set by this flag
22262246

2247+
func (i *UintSlice) WithSeparatorSpec(spec separatorSpec)
2248+
22272249
type UintSliceFlag struct {
22282250
Name string
22292251

@@ -2290,6 +2312,8 @@ func (f *UintSliceFlag) String() string
22902312
func (f *UintSliceFlag) TakesValue() bool
22912313
TakesValue returns true of the flag takes a value, otherwise false
22922314

2315+
func (f *UintSliceFlag) WithSeparatorSpec(spec separatorSpec)
2316+
22932317
type VisibleFlag interface {
22942318
Flag
22952319

testdata/godoc-v2.x.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,8 @@ func (f *Float64Slice) String() string
10381038
func (f *Float64Slice) Value() []float64
10391039
Value returns the slice of float64s set by this flag
10401040

1041+
func (f *Float64Slice) WithSeparatorSpec(spec separatorSpec)
1042+
10411043
type Float64SliceFlag struct {
10421044
Name string
10431045

@@ -1113,6 +1115,8 @@ func (f *Float64SliceFlag) String() string
11131115
func (f *Float64SliceFlag) TakesValue() bool
11141116
TakesValue returns true if the flag takes a value, otherwise false
11151117

1118+
func (f *Float64SliceFlag) WithSeparatorSpec(spec separatorSpec)
1119+
11161120
type Generic interface {
11171121
Set(value string) error
11181122
String() string
@@ -1279,6 +1283,8 @@ func (i *Int64Slice) String() string
12791283
func (i *Int64Slice) Value() []int64
12801284
Value returns the slice of ints set by this flag
12811285

1286+
func (i *Int64Slice) WithSeparatorSpec(spec separatorSpec)
1287+
12821288
type Int64SliceFlag struct {
12831289
Name string
12841290

@@ -1354,6 +1360,8 @@ func (f *Int64SliceFlag) String() string
13541360
func (f *Int64SliceFlag) TakesValue() bool
13551361
TakesValue returns true of the flag takes a value, otherwise false
13561362

1363+
func (f *Int64SliceFlag) WithSeparatorSpec(spec separatorSpec)
1364+
13571365
type IntFlag struct {
13581366
Name string
13591367

@@ -1449,6 +1457,8 @@ func (i *IntSlice) String() string
14491457
func (i *IntSlice) Value() []int
14501458
Value returns the slice of ints set by this flag
14511459

1460+
func (i *IntSlice) WithSeparatorSpec(spec separatorSpec)
1461+
14521462
type IntSliceFlag struct {
14531463
Name string
14541464

@@ -1524,6 +1534,8 @@ func (f *IntSliceFlag) String() string
15241534
func (f *IntSliceFlag) TakesValue() bool
15251535
TakesValue returns true of the flag takes a value, otherwise false
15261536

1537+
func (f *IntSliceFlag) WithSeparatorSpec(spec separatorSpec)
1538+
15271539
type InvalidFlagAccessFunc func(*Context, string)
15281540
InvalidFlagAccessFunc is executed when an invalid flag is accessed from the
15291541
context.
@@ -1792,6 +1804,8 @@ func (s *StringSlice) String() string
17921804
func (s *StringSlice) Value() []string
17931805
Value returns the slice of strings set by this flag
17941806

1807+
func (s *StringSlice) WithSeparatorSpec(spec separatorSpec)
1808+
17951809
type StringSliceFlag struct {
17961810
Name string
17971811

@@ -1869,6 +1883,8 @@ func (f *StringSliceFlag) String() string
18691883
func (f *StringSliceFlag) TakesValue() bool
18701884
TakesValue returns true of the flag takes a value, otherwise false
18711885

1886+
func (f *StringSliceFlag) WithSeparatorSpec(spec separatorSpec)
1887+
18721888
type SuggestCommandFunc func(commands []*Command, provided string) string
18731889

18741890
type SuggestFlagFunc func(flags []Flag, provided string, hideHelp bool) string
@@ -2063,6 +2079,8 @@ func (i *Uint64Slice) String() string
20632079
func (i *Uint64Slice) Value() []uint64
20642080
Value returns the slice of ints set by this flag
20652081

2082+
func (i *Uint64Slice) WithSeparatorSpec(spec separatorSpec)
2083+
20662084
type Uint64SliceFlag struct {
20672085
Name string
20682086

@@ -2129,6 +2147,8 @@ func (f *Uint64SliceFlag) String() string
21292147
func (f *Uint64SliceFlag) TakesValue() bool
21302148
TakesValue returns true of the flag takes a value, otherwise false
21312149

2150+
func (f *Uint64SliceFlag) WithSeparatorSpec(spec separatorSpec)
2151+
21322152
type UintFlag struct {
21332153
Name string
21342154

@@ -2224,6 +2244,8 @@ func (i *UintSlice) String() string
22242244
func (i *UintSlice) Value() []uint
22252245
Value returns the slice of ints set by this flag
22262246

2247+
func (i *UintSlice) WithSeparatorSpec(spec separatorSpec)
2248+
22272249
type UintSliceFlag struct {
22282250
Name string
22292251

@@ -2290,6 +2312,8 @@ func (f *UintSliceFlag) String() string
22902312
func (f *UintSliceFlag) TakesValue() bool
22912313
TakesValue returns true of the flag takes a value, otherwise false
22922314

2315+
func (f *UintSliceFlag) WithSeparatorSpec(spec separatorSpec)
2316+
22932317
type VisibleFlag interface {
22942318
Flag
22952319

0 commit comments

Comments
 (0)