From 2b59b30398f130f46e7d95d4496e2e2e349eaa74 Mon Sep 17 00:00:00 2001 From: Leonel Quinteros Date: Wed, 13 Nov 2019 14:59:02 -0300 Subject: [PATCH] Update README.md --- README.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index f6a67d2..7575b09 100644 --- a/README.md +++ b/README.md @@ -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. +### 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/) -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 @@ -89,18 +101,6 @@ import "gopkg.in/leonelquinteros/gotext.v1" 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 The package will assume a directories structure starting with a base path that will be provided to the package configuration