From 4f93f8c670b26258dc7e3a613c38dbc86d8eda76 Mon Sep 17 00:00:00 2001 From: Cameron Moore Date: Fri, 28 Dec 2018 12:48:12 -0600 Subject: [PATCH] tpl: Fix hugo package name and add godocs --- tpl/hugo/init.go | 3 ++- tpl/hugo/init_test.go | 2 +- tpl/reflect/init.go | 1 + tpl/site/init.go | 1 + 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 (