From 8d0f41e610b4ca70a1cea54aca6ffe50f7d24a2b Mon Sep 17 00:00:00 2001 From: Waldemar Quevedo Date: Sun, 6 Sep 2020 11:36:19 -0700 Subject: [PATCH 1/2] Update examples Signed-off-by: Waldemar Quevedo --- .travis.yml | 10 +++------- README.md | 14 ++++---------- examples/arguments/arguments.go | 2 +- examples/arguments/arguments_test.go | 2 +- examples/calculator/calculator.go | 2 +- examples/calculator/calculator_test.go | 2 +- examples/config_file/config_file.go | 2 +- examples/counted/counted.go | 2 +- examples/counted/counted_test.go | 2 +- examples/examples.go | 2 +- examples/fake-git/branch/git_branch.go | 2 +- examples/fake-git/checkout/git_checkout.go | 2 +- examples/fake-git/clone/git_clone.go | 2 +- examples/fake-git/fakegit.go | 2 +- examples/fake-git/push/git_push.go | 2 +- examples/fake-git/remote/git_remote.go | 2 +- examples/naval_fate/naval_fate.go | 2 +- examples/odd_even/odd_even.go | 2 +- examples/options/options.go | 2 +- examples/options_shortcut/options_shortcut.go | 2 +- examples/quick/quick.go | 2 +- examples/type_assert/type_assert.go | 2 +- examples/unit_test/unit_test.go | 2 +- 23 files changed, 28 insertions(+), 38 deletions(-) diff --git a/.travis.yml b/.travis.yml index db820dc..115ca46 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,16 +1,12 @@ # Travis CI (http://travis-ci.org/) is a continuous integration # service for open source projects. This file configures it -# to run unit tests for docopt-go. +# to run unit tests for docopt.go. language: go go: - - 1.4 - - 1.5 - - 1.6 - - 1.7 - - 1.8 - - 1.9 + - 1.14 + - 1.15 - tip matrix: diff --git a/README.md b/README.md index d03f8da..51654f1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -docopt-go +docopt.go ========= [![Build Status](https://travis-ci.org/docopt/docopt.go.svg?branch=master)](https://travis-ci.org/docopt/docopt.go) @@ -14,7 +14,7 @@ package main import ( "fmt" - "github.com/docopt/docopt-go" + "github.com/docopt/docopt.go" ) func main() { @@ -44,16 +44,10 @@ Options: ## Installation -⚠ Use the alias "docopt-go". To use docopt in your Go code: - -```go -import "github.com/docopt/docopt-go" -``` - To install docopt in your `$GOPATH`: ```console -$ go get github.com/docopt/docopt-go +$ go get github.com/docopt/docopt.go ``` ## API @@ -103,7 +97,7 @@ var config struct { opts.Bind(&config) ``` -More documentation is available at [godoc.org](https://godoc.org/github.com/docopt/docopt-go). +More documentation is available at [godoc.org](https://pkg.go.dev/github.com/docopt/docopt.go). ## Unit Testing diff --git a/examples/arguments/arguments.go b/examples/arguments/arguments.go index 10074cb..a9505fd 100644 --- a/examples/arguments/arguments.go +++ b/examples/arguments/arguments.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "github.com/docopt/docopt-go" + "github.com/docopt/docopt.go" ) var usage = `Usage: arguments [-vqrh] [FILE] ... diff --git a/examples/arguments/arguments_test.go b/examples/arguments/arguments_test.go index e9a8654..978bf6e 100644 --- a/examples/arguments/arguments_test.go +++ b/examples/arguments/arguments_test.go @@ -1,7 +1,7 @@ package main import ( - "github.com/docopt/docopt-go/examples" + "github.com/docopt/docopt.go/examples" ) func Example() { diff --git a/examples/calculator/calculator.go b/examples/calculator/calculator.go index 16939dc..f30ef52 100644 --- a/examples/calculator/calculator.go +++ b/examples/calculator/calculator.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "github.com/docopt/docopt-go" + "github.com/docopt/docopt.go" ) var usage = `Not a serious example. diff --git a/examples/calculator/calculator_test.go b/examples/calculator/calculator_test.go index eee1c13..eb0384f 100644 --- a/examples/calculator/calculator_test.go +++ b/examples/calculator/calculator_test.go @@ -1,7 +1,7 @@ package main import ( - "github.com/docopt/docopt-go/examples" + "github.com/docopt/docopt.go/examples" ) func Example() { diff --git a/examples/config_file/config_file.go b/examples/config_file/config_file.go index bfa174c..c387ec3 100644 --- a/examples/config_file/config_file.go +++ b/examples/config_file/config_file.go @@ -3,7 +3,7 @@ package main import ( "encoding/json" "fmt" - "github.com/docopt/docopt-go" + "github.com/docopt/docopt.go" "strings" ) diff --git a/examples/counted/counted.go b/examples/counted/counted.go index c5d0c33..66c525f 100644 --- a/examples/counted/counted.go +++ b/examples/counted/counted.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "github.com/docopt/docopt-go" + "github.com/docopt/docopt.go" ) var usage = `Usage: counted --help diff --git a/examples/counted/counted_test.go b/examples/counted/counted_test.go index 61f7cbc..4351b18 100644 --- a/examples/counted/counted_test.go +++ b/examples/counted/counted_test.go @@ -1,7 +1,7 @@ package main import ( - "github.com/docopt/docopt-go/examples" + "github.com/docopt/docopt.go/examples" ) func Example() { diff --git a/examples/examples.go b/examples/examples.go index 180d79b..4eb5cbc 100644 --- a/examples/examples.go +++ b/examples/examples.go @@ -5,7 +5,7 @@ import ( "sort" "strings" - "github.com/docopt/docopt-go" + "github.com/docopt/docopt.go" ) // TestUsage is a helper used to test the output from the examples in this folder. diff --git a/examples/fake-git/branch/git_branch.go b/examples/fake-git/branch/git_branch.go index b77beee..396e755 100644 --- a/examples/fake-git/branch/git_branch.go +++ b/examples/fake-git/branch/git_branch.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "github.com/docopt/docopt-go" + "github.com/docopt/docopt.go" ) func main() { diff --git a/examples/fake-git/checkout/git_checkout.go b/examples/fake-git/checkout/git_checkout.go index 0b9235c..d989e68 100644 --- a/examples/fake-git/checkout/git_checkout.go +++ b/examples/fake-git/checkout/git_checkout.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "github.com/docopt/docopt-go" + "github.com/docopt/docopt.go" ) func main() { diff --git a/examples/fake-git/clone/git_clone.go b/examples/fake-git/clone/git_clone.go index 92adfcb..3768cbe 100644 --- a/examples/fake-git/clone/git_clone.go +++ b/examples/fake-git/clone/git_clone.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "github.com/docopt/docopt-go" + "github.com/docopt/docopt.go" ) func main() { diff --git a/examples/fake-git/fakegit.go b/examples/fake-git/fakegit.go index 92e1ab5..20d25c4 100644 --- a/examples/fake-git/fakegit.go +++ b/examples/fake-git/fakegit.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "github.com/docopt/docopt-go" + "github.com/docopt/docopt.go" "os" "os/exec" ) diff --git a/examples/fake-git/push/git_push.go b/examples/fake-git/push/git_push.go index 2b47edc..d22f333 100644 --- a/examples/fake-git/push/git_push.go +++ b/examples/fake-git/push/git_push.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "github.com/docopt/docopt-go" + "github.com/docopt/docopt.go" ) func main() { diff --git a/examples/fake-git/remote/git_remote.go b/examples/fake-git/remote/git_remote.go index c1d31e1..5edb587 100644 --- a/examples/fake-git/remote/git_remote.go +++ b/examples/fake-git/remote/git_remote.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "github.com/docopt/docopt-go" + "github.com/docopt/docopt.go" ) func main() { diff --git a/examples/naval_fate/naval_fate.go b/examples/naval_fate/naval_fate.go index 4827d44..3fa79cd 100644 --- a/examples/naval_fate/naval_fate.go +++ b/examples/naval_fate/naval_fate.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "github.com/docopt/docopt-go" + "github.com/docopt/docopt.go" ) func main() { diff --git a/examples/odd_even/odd_even.go b/examples/odd_even/odd_even.go index 1d9e617..88b5b55 100644 --- a/examples/odd_even/odd_even.go +++ b/examples/odd_even/odd_even.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "github.com/docopt/docopt-go" + "github.com/docopt/docopt.go" ) func main() { diff --git a/examples/options/options.go b/examples/options/options.go index b3c3398..b59caa7 100644 --- a/examples/options/options.go +++ b/examples/options/options.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "github.com/docopt/docopt-go" + "github.com/docopt/docopt.go" ) func main() { diff --git a/examples/options_shortcut/options_shortcut.go b/examples/options_shortcut/options_shortcut.go index 6dbd394..ad8c8b9 100644 --- a/examples/options_shortcut/options_shortcut.go +++ b/examples/options_shortcut/options_shortcut.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "github.com/docopt/docopt-go" + "github.com/docopt/docopt.go" ) func main() { diff --git a/examples/quick/quick.go b/examples/quick/quick.go index 63835a1..032f428 100644 --- a/examples/quick/quick.go +++ b/examples/quick/quick.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "github.com/docopt/docopt-go" + "github.com/docopt/docopt.go" ) func main() { diff --git a/examples/type_assert/type_assert.go b/examples/type_assert/type_assert.go index 61c2c4e..dfb36c3 100644 --- a/examples/type_assert/type_assert.go +++ b/examples/type_assert/type_assert.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "github.com/docopt/docopt-go" + "github.com/docopt/docopt.go" ) func main() { diff --git a/examples/unit_test/unit_test.go b/examples/unit_test/unit_test.go index 18428d9..1b638ec 100644 --- a/examples/unit_test/unit_test.go +++ b/examples/unit_test/unit_test.go @@ -1,7 +1,7 @@ package main import ( - "github.com/docopt/docopt-go" + "github.com/docopt/docopt.go" "reflect" "testing" ) From e60a492ba61619ff4da550a81bfd9f5405415251 Mon Sep 17 00:00:00 2001 From: Waldemar Quevedo Date: Wed, 10 Nov 2021 12:20:54 -0800 Subject: [PATCH 2/2] Add latest Go to Travis --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 115ca46..ca25038 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,8 @@ language: go go: - 1.14 - 1.15 + - 1.16 + - 1.17 - tip matrix: