Skip to content

Commit 9b87f3b

Browse files
committed
docs: regenerate v3 godoc
Signed-off-by: Eng Zer Jun <[email protected]>
1 parent 35656a1 commit 9b87f3b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

testdata/godoc-v3.x.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -977,29 +977,29 @@ type SuggestCommandFunc func(commands []*Command, provided string) string
977977

978978
type SuggestFlagFunc func(flags []Flag, provided string, hideHelp bool) string
979979

980-
type TextFlag = FlagBase[TextMarshalUnMarshaller, StringConfig, TextValue]
981-
TextFlag enables you to set types that satisfies TextMarshalUnMarshaller
980+
type TextFlag = FlagBase[TextMarshalUnmarshaler, StringConfig, TextValue]
981+
TextFlag enables you to set types that satisfies TextMarshalUnmarshaler
982982
using flags such as log levels.
983983

984-
type TextMarshalUnMarshaller interface {
984+
type TextMarshalUnmarshaler interface {
985985
encoding.TextMarshaler
986986
encoding.TextUnmarshaler
987987
}
988988

989989
type TextValue struct {
990-
Value TextMarshalUnMarshaller
990+
Value *TextMarshalUnmarshaler
991991
Config StringConfig
992992
}
993993

994-
func (v TextValue) Create(t TextMarshalUnMarshaller, _ *TextMarshalUnMarshaller, c StringConfig) Value
994+
func (f TextValue) Create(v TextMarshalUnmarshaler, p *TextMarshalUnmarshaler, c StringConfig) Value
995995

996-
func (v TextValue) Get() any
996+
func (f TextValue) Get() any
997997

998-
func (v TextValue) Set(s string) error
998+
func (f TextValue) Set(s string) error
999999

1000-
func (v TextValue) String() string
1000+
func (f TextValue) String() string
10011001

1002-
func (v TextValue) ToString(t TextMarshalUnMarshaller) string
1002+
func (f TextValue) ToString(v TextMarshalUnmarshaler) string
10031003

10041004
type TimestampArg = ArgumentBase[time.Time, TimestampConfig, timestampValue]
10051005

0 commit comments

Comments
 (0)