Improved docs

This commit is contained in:
Leonel Quinteros
2016-06-24 17:09:34 -03:00
parent 15e87b9351
commit 25256ca6c0
2 changed files with 4 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ Example:
// Translate text from domain
println(l.GetD("extras", "Translate this"))
}
*/
type Locale struct {
// Path to locale files.

3
po.go
View File

@@ -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