diff options
| author | Alex Flint <[email protected]> | 2018-11-20 10:45:00 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-11-20 10:45:00 -0800 |
| commit | fb7d95b61ba8d5860c76afb69243586dff37ae85 (patch) | |
| tree | 091e3c1bf1decbc9a2fa7dd00bbacbe67ef6b2b7 /README.md | |
| parent | f7c0423bd11ee80ab81d25c6d46f492998af8547 (diff) | |
| parent | a6af419fff15e031332604d9d99a9318881e99a7 (diff) | |
Merge pull request #69 from pborzenkov/update-go-scalar
Update go scalar to the latest version
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -288,10 +288,10 @@ func (n *NameDotName) MarshalText() (text []byte, err error) { func main() { var args struct { - Name *NameDotName + Name NameDotName } // set default - args.Name = &NameDotName{"file", "txt"} + args.Name = NameDotName{"file", "txt"} arg.MustParse(&args) fmt.Printf("%#v\n", args.Name) } @@ -305,10 +305,10 @@ Options: --help, -h display this help and exit $ ./example -&main.NameDotName{Head:"file", Tail:"txt"} +main.NameDotName{Head:"file", Tail:"txt"} $ ./example --name=foo.bar -&main.NameDotName{Head:"foo", Tail:"bar"} +main.NameDotName{Head:"foo", Tail:"bar"} $ ./example --name=oops Usage: example [--name NAME] |
