Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/go-i18n.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Snyder <nickdsnyder@gmail.com>2019-05-03 22:08:26 +0300
committerNick Snyder <nickdsnyder@gmail.com>2019-05-03 22:08:26 +0300
commit48788830af56e746921e5f0399c65a736a584dee (patch)
tree7adc95c17b3a751e3d7af61619d661786ffb8d4b
parent030e5024e44a1ddc5259354604580c786c41c0fc (diff)
update readme to reflect changes made in https://github.com/nicksnyder/go-i18n/pull/163
fixes https://github.com/nicksnyder/go-i18n/issues/167
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 0c383d3..e71b535 100644
--- a/README.md
+++ b/README.md
@@ -26,7 +26,7 @@ import "github.com/nicksnyder/go-i18n/v2/i18n"
Create a Bundle to use for the lifetime of your application.
```go
-bundle := &i18n.Bundle{DefaultLanguage: language.English}
+bundle := i18n.NewBundle(language.English)
```
Load translations into your bundle during initialization.