Documentation ¶
Overview ¶
Command docopt demonstrates binding docopt to a struct via env.
It uses a simple implementation of env.Env to map environment variable names to docopt options (e.g. LOG_LEVEL -> --log-level), and to cast the limited types returned by docopt to strings.
USERNAME=bob go run docopt_example.go --cache-path /var/cache // Output: // CachePath=/var/cache // Username=bob // ... // ...
Click to show internal directories.
Click to hide internal directories.