Skip to content

Commit

Permalink
fix(package): import and "go get" as docopt-go
Browse files Browse the repository at this point in the history
After renaming the **docopt.go** GitHub project to **docopt-go**
and back again, the redirect remains. So it is now possible to
`go get github.com/docopt/docopt-go`.

This updates all imports and other references to the downloadable
Go package to **docopt-go** while keeping the GitHub project name as
**docopt.go**.

Fixes docopt#2.
  • Loading branch information
mboersma committed Apr 19, 2014
1 parent 717d0bc commit 95ed7bf
Show file tree
Hide file tree
Showing 19 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Golang implementation of [docopt](http://docopt.org/) 0.6.1+fix

## Installation

import "github.com/docopt/docopt.go" and then run `go get`.
import "github.com/docopt/docopt-go" and then run `go get`.

## API

Expand Down Expand Up @@ -45,7 +45,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 docopt.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ import (
//
// import (
// "fmt"
// "github.com/docopt/docopt.go"
// "github.com/docopt/docopt-go"
// )
//
// func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/arguments_example.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/calculator_example.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/config_file_example.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_example.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/git/git.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/git/git_add.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 cmdAdd(argv []string) (err error) {
Expand Down
2 changes: 1 addition & 1 deletion examples/git/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/git/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/git/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/git/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/git/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.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_example.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_example.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_example.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_example.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_example.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

0 comments on commit 95ed7bf

Please sign in to comment.