Skip to content

Commit b1058a6

Browse files
committed
Add comment
1 parent 53b147b commit b1058a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cli/clibase/values.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,9 @@ func (discardValue) UnmarshalJSON(data []byte) error {
434434
return nil
435435
}
436436

437+
// jsonValue is intentionally not exported. It is just used to store the raw JSON
438+
// data for a value to defer it's unmarshal. It implements the pflag.Value to be
439+
// usable in an Option.
437440
type jsonValue json.RawMessage
438441

439442
func (jsonValue) Set(string) error {

0 commit comments

Comments
 (0)