mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-18 22:23:07 -03:00
*: module rename to go-enry/go-enry/v4
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user