diff options
author | Jorin Vogel <hi@jorin.me> | 2017-08-02 14:25:05 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-08-03 15:57:51 +0200 |
commit | 81c13171a985b89f2af6682dbd1d4b8766cb9af7 (patch) | |
tree | db39d78bbe6da0ea3f3dd3d2f94c7e1571ad8fd6 /hugolib/multilingual.go | |
parent | 9891c0fb0eb274b8a95b62c40070a87a6e04088c (diff) |
Add some missing doc comments
As pointed out by the linter, some exported functions and types are
missing doc comments.
The linter warnings have been reduced from 194 to 116.
Not all missing comments have been added in this commit though.
Diffstat (limited to 'hugolib/multilingual.go')
-rw-r--r-- | hugolib/multilingual.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hugolib/multilingual.go b/hugolib/multilingual.go index 575be1396..953f522bd 100644 --- a/hugolib/multilingual.go +++ b/hugolib/multilingual.go @@ -26,6 +26,7 @@ import ( "github.com/spf13/cast" ) +// Multilingual manages the all languages used in a multilingual site. type Multilingual struct { Languages helpers.Languages @@ -35,6 +36,7 @@ type Multilingual struct { langMapInit sync.Once } +// Language returns the Language assosiated with the given string. func (ml *Multilingual) Language(lang string) *helpers.Language { ml.langMapInit.Do(func() { ml.langMap = make(map[string]*helpers.Language) |