Update README.md

This commit is contained in:
Leonel Quinteros
2019-11-13 14:59:02 -03:00
committed by GitHub
parent 208807f5ca
commit 2b59b30398

View File

@@ -55,12 +55,24 @@ Stable releases use [semantic versioning](http://semver.org/spec/v2.0.0.html) ta
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 [Go Modules](https://github.com/golang/go/wiki/Modules) (Recommended)
Add `github.com/leonelquinteros/gotext` inside the `require` section in your `go.mod` file.
i.e.
```
require (
github.com/leonelquinteros/gotext v1.4.0
)
```
### Vendoring with [dep](https://golang.github.io/dep/) ### Vendoring with [dep](https://golang.github.io/dep/)
To use last stable version (v1.3.1 at the moment of writing) To use last stable version (v1.4.0 at the moment of writing)
``` ```
dep ensure -add github.com/leonelquinteros/gotext@v1.3.1 dep ensure -add github.com/leonelquinteros/gotext@v1.4.0
``` ```
Import as Import as
@@ -89,18 +101,6 @@ import "gopkg.in/leonelquinteros/gotext.v1"
Refer to it as gotext. Refer to it as gotext.
### Vendoring with [Go Modules](https://github.com/golang/go/wiki/Modules)
Add `github.com/leonelquinteros/gotext` inside the `require` section in your `go.mod` file.
i.e.
```
require (
github.com/leonelquinteros/gotext v1.4.0
)
```
# Locales directories structure # Locales directories structure
The package will assume a directories structure starting with a base path that will be provided to the package configuration The package will assume a directories structure starting with a base path that will be provided to the package configuration