Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to use docopt.go import which should be ok since Go 1.13 #75

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
# 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
- 1.16
- 1.17
- tip

matrix:
Expand Down
14 changes: 4 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -14,7 +14,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

func main() {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion examples/arguments/arguments.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

var usage = `Usage: arguments [-vqrh] [FILE] ...
Expand Down
2 changes: 1 addition & 1 deletion examples/arguments/arguments_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/docopt/docopt-go/examples"
"github.com/docopt/docopt.go/examples"
)

func Example() {
Expand Down
2 changes: 1 addition & 1 deletion examples/calculator/calculator.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

var usage = `Not a serious example.
Expand Down
2 changes: 1 addition & 1 deletion examples/calculator/calculator_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/docopt/docopt-go/examples"
"github.com/docopt/docopt.go/examples"
)

func Example() {
Expand Down
2 changes: 1 addition & 1 deletion examples/config_file/config_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"encoding/json"
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
"strings"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/counted/counted.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

var usage = `Usage: counted --help
Expand Down
2 changes: 1 addition & 1 deletion examples/counted/counted_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/docopt/docopt-go/examples"
"github.com/docopt/docopt.go/examples"
)

func Example() {
Expand Down
2 changes: 1 addition & 1 deletion examples/examples.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion examples/fake-git/branch/git_branch.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/fake-git/checkout/git_checkout.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/fake-git/clone/git_clone.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/fake-git/fakegit.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
"os"
"os/exec"
)
Expand Down
2 changes: 1 addition & 1 deletion examples/fake-git/push/git_push.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/fake-git/remote/git_remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/naval_fate/naval_fate.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/odd_even/odd_even.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/options_shortcut/options_shortcut.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/quick/quick.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/type_assert/type_assert.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/unit_test/unit_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
"reflect"
"testing"
)
Expand Down