summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCameron Moore <moorereason@gmail.com>2018-12-28 12:48:12 -0600
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-04-27 22:44:57 +0200
commit4f93f8c670b26258dc7e3a613c38dbc86d8eda76 (patch)
treef7d44dd25095c4d035c09f6c7ad144f3f8ce8b5a
parentf76e50118b8b5dd8989d068db35222bfa0a242d8 (diff)
tpl: Fix hugo package name and add godocs
-rw-r--r--tpl/hugo/init.go3
-rw-r--r--tpl/hugo/init_test.go2
-rw-r--r--tpl/reflect/init.go1
-rw-r--r--tpl/site/init.go1
4 files changed, 5 insertions, 2 deletions
diff --git a/tpl/hugo/init.go b/tpl/hugo/init.go
index e5c7c0f28..1556b759c 100644
--- a/tpl/hugo/init.go
+++ b/tpl/hugo/init.go
@@ -11,7 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-package site
+// Package hugo provides template functions for accessing the Site Hugo object.
+package hugo
import (
"github.com/gohugoio/hugo/deps"
diff --git a/tpl/hugo/init_test.go b/tpl/hugo/init_test.go
index 60612761b..128f6fc19 100644
--- a/tpl/hugo/init_test.go
+++ b/tpl/hugo/init_test.go
@@ -11,7 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-package site
+package hugo
import (
"testing"
diff --git a/tpl/reflect/init.go b/tpl/reflect/init.go
index 4c639577b..6ff3f8093 100644
--- a/tpl/reflect/init.go
+++ b/tpl/reflect/init.go
@@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// Package reflect provides template functions for run-time object reflection.
package reflect
import (
diff --git a/tpl/site/init.go b/tpl/site/init.go
index 4f5df0b0b..48713bb3b 100644
--- a/tpl/site/init.go
+++ b/tpl/site/init.go
@@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// Package site provides template functions for accessing the Site object.
package site
import (