summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAlex Flint <[email protected]>2018-11-20 10:45:00 -0800
committerGitHub <[email protected]>2018-11-20 10:45:00 -0800
commitfb7d95b61ba8d5860c76afb69243586dff37ae85 (patch)
tree091e3c1bf1decbc9a2fa7dd00bbacbe67ef6b2b7 /README.md
parentf7c0423bd11ee80ab81d25c6d46f492998af8547 (diff)
parenta6af419fff15e031332604d9d99a9318881e99a7 (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.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 8980ba1..8e68ca7 100644
--- a/README.md
+++ b/README.md
@@ -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]