From 25256ca6c080607f37378451e7c681012d538781 Mon Sep 17 00:00:00 2001 From: Leonel Quinteros Date: Fri, 24 Jun 2016 17:09:34 -0300 Subject: [PATCH] Improved docs --- locale.go | 1 + po.go | 3 +++ 2 files changed, 4 insertions(+) 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