From 8af550936f59d101e8173a23cd41f8202f6bd67a Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Mon, 16 May 2016 10:46:43 -0400 Subject: [PATCH] Add another bit about pinning to `v1` --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 0f9aa33..ac59994 100644 --- a/README.md +++ b/README.md @@ -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 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()`.