We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78fac02 commit 8050782Copy full SHA for 8050782
src/flag/flag.go
@@ -238,7 +238,8 @@ func (d *durationValue) String() string { return (*time.Duration)(d).String() }
238
// rather than using the next command-line argument.
239
//
240
// Set is called once, in command line order, for each flag present.
241
-// String must work on the zero value of the dynamic type.
+// The flag package may call the String method with a zero-valued receiver,
242
+// such as a nil pointer.
243
type Value interface {
244
String() string
245
Set(string) error
0 commit comments