*: module rename to go-enry/go-enry/v4

This commit is contained in:
Máximo Cuadros
2020-03-19 17:31:29 +01:00
parent bc5e031cee
commit 84efad7693
50 changed files with 60 additions and 172 deletions

View File

@ -21,7 +21,7 @@ The recommended way to install the `enry` command-line tool is to either
[download a release](https://github.com/bzz/enry/releases) or run:
```
(cd "$(mktemp -d)" && go mod init enry && go get github.com/bzz/enry/v2/cmd/enry)
(cd "$(mktemp -d)" && go mod init enry && go get github.com/go-enry/go-enry/v2/cmd/enry)
```
*enry* CLI accepts similar flags (`--breakdown/--json`) and produce an output, similar to *linguist*:
@ -50,7 +50,7 @@ In a [Go module](https://github.com/golang/go/wiki/Modules),
import `enry` to the module by running:
```go
go get github.com/bzz/enry/v2
go get github.com/go-enry/go-enry/v2
```
The rest of the examples will assume you have either done this or fetched the
@ -58,7 +58,7 @@ library into your `GOPATH`.
```go
// The examples here and below assume you have imported the library.
import "github.com/bzz/enry/v2"
import "github.com/go-enry/go-enry/v2"
lang, safe := enry.GetLanguageByExtension("foo.go")
fmt.Println(lang, safe)