Update README file. Update Travis config
This commit is contained in:
13
.travis.yml
13
.travis.yml
@@ -1,16 +1,17 @@
|
|||||||
language: go
|
language: go
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- 1.6
|
- "1.6"
|
||||||
- 1.7
|
- "1.7"
|
||||||
- 1.8
|
- "1.8"
|
||||||
- 1.9
|
- "1.9"
|
||||||
- tip
|
- "1.10"
|
||||||
|
- "tip"
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- go get -t -v ./...
|
- go get -t -v ./...
|
||||||
|
|
||||||
script: go test -v -race -coverprofile=coverage.txt -covermode=atomic .
|
script: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- bash <(curl -s https://codecov.io/bash)
|
- bash <(curl -s https://codecov.io/bash)
|
||||||
|
|||||||
22
README.md
22
README.md
@@ -18,6 +18,7 @@
|
|||||||
- Support for variables inside translation strings using Go's [fmt syntax](https://golang.org/pkg/fmt/).
|
- Support for variables inside translation strings using Go's [fmt syntax](https://golang.org/pkg/fmt/).
|
||||||
- Support for [pluralization rules](https://www.gnu.org/software/gettext/manual/html_node/Translating-plural-forms.html).
|
- Support for [pluralization rules](https://www.gnu.org/software/gettext/manual/html_node/Translating-plural-forms.html).
|
||||||
- Support for [message contexts](https://www.gnu.org/software/gettext/manual/html_node/Contexts.html).
|
- Support for [message contexts](https://www.gnu.org/software/gettext/manual/html_node/Contexts.html).
|
||||||
|
- Support for MO files.
|
||||||
- Thread-safe: This package is safe for concurrent use across multiple goroutines.
|
- Thread-safe: This package is safe for concurrent use across multiple goroutines.
|
||||||
- It works with UTF-8 encoding as it's the default for Go language.
|
- It works with UTF-8 encoding as it's the default for Go language.
|
||||||
- Unit tests available.
|
- Unit tests available.
|
||||||
@@ -46,14 +47,29 @@ go get github.com/leonelquinteros/gotext
|
|||||||
- No need for environment variables. Some naming conventions are applied but not needed.
|
- No need for environment variables. Some naming conventions are applied but not needed.
|
||||||
|
|
||||||
|
|
||||||
#### Version vendoring
|
### Version vendoring
|
||||||
|
|
||||||
Stable releases use [semantic versioning](http://semver.org/spec/v2.0.0.html) tagging on this repository.
|
Stable releases use [semantic versioning](http://semver.org/spec/v2.0.0.html) tagging on this repository.
|
||||||
|
|
||||||
You can rely on this to use your preferred vendoring tool or to manually retrieve the corresponding release tag from the GitHub repository.
|
You can rely on this to use your preferred vendoring tool or to manually retrieve the corresponding release tag from the GitHub repository.
|
||||||
|
|
||||||
|
|
||||||
##### Vendoring with [gopkg.in](http://labix.org/gopkg.in)
|
#### Vendoring with [dep](https://golang.github.io/dep/)
|
||||||
|
|
||||||
|
To use last stable version (v1.3.1 at the moment of writing)
|
||||||
|
|
||||||
|
```
|
||||||
|
dep ensure -add github.com/leonelquinteros/gotext@v1.3.1
|
||||||
|
```
|
||||||
|
|
||||||
|
Import as
|
||||||
|
|
||||||
|
```go
|
||||||
|
import "github.com/leonelquinteros/gotext"
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
#### Vendoring with [gopkg.in](http://labix.org/gopkg.in)
|
||||||
|
|
||||||
[http://gopkg.in/leonelquinteros/gotext.v1](http://gopkg.in/leonelquinteros/gotext.v1)
|
[http://gopkg.in/leonelquinteros/gotext.v1](http://gopkg.in/leonelquinteros/gotext.v1)
|
||||||
|
|
||||||
@@ -63,7 +79,7 @@ To get the latest v1 package stable release, execute:
|
|||||||
go get gopkg.in/leonelquinteros/gotext.v1
|
go get gopkg.in/leonelquinteros/gotext.v1
|
||||||
```
|
```
|
||||||
|
|
||||||
To import this package, add the following line to your code:
|
Import as
|
||||||
|
|
||||||
```go
|
```go
|
||||||
import "gopkg.in/leonelquinteros/gotext.v1"
|
import "gopkg.in/leonelquinteros/gotext.v1"
|
||||||
|
|||||||
Reference in New Issue
Block a user