diff --git a/locale.go b/locale.go index 1abc963..26a1a17 100644 --- a/locale.go +++ b/locale.go @@ -31,6 +31,7 @@ Example: // Translate text from domain println(l.GetD("extras", "Translate this")) } + */ type Locale struct { // Path to locale files. diff --git a/po.go b/po.go index b918bf6..fd96f23 100644 --- a/po.go +++ b/po.go @@ -44,6 +44,8 @@ func (t *translation) getN(n int) string { /* Po parses the content of any PO file and provides all the translation functions needed. +It's the base object used by all packafe methods. +And it's safe for concurrent use by multiple goroutines by using the sync package for write locking. Example: @@ -59,6 +61,7 @@ Example: // Get translation println(po.Get("Translate this")) } + */ type Po struct { // Storage