Add another bit about pinning to `v1`

main
Dan Buch 8 years ago
parent 1beb5f66cd
commit 8af550936f
No known key found for this signature in database
GPG Key ID: FAEF12936DD3E3EC

@ -51,6 +51,24 @@ import (
... ...
``` ```
### Pinning to the `v1` branch
Similarly to the section above describing use of the `v2` branch, if one wants
to avoid any unexpected compatibility pains once `v2` becomes `master`, then
pinning to the `v1` branch is an acceptable option, e.g.:
```
$ go get gopkg.in/codegangsta/cli.v1
```
``` go
...
import (
"gopkg.in/codegangsta/cli.v1" // imports as package "cli"
)
...
```
## Getting Started ## Getting Started
One of the philosophies behind cli is that an API should be playful and full of discovery. So a cli app can be as little as one line of code in `main()`. One of the philosophies behind cli is that an API should be playful and full of discovery. So a cli app can be as little as one line of code in `main()`.

Loading…
Cancel
Save