tpl: Fix hugo package name and add godocs
authorCameron Moore <moorereason@gmail.com>
Fri, 28 Dec 2018 18:48:12 +0000 (12:48 -0600)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 27 Apr 2019 20:44:57 +0000 (22:44 +0200)
tpl/hugo/init.go
tpl/hugo/init_test.go
tpl/reflect/init.go
tpl/site/init.go

index e5c7c0f28f59ad6e98203baecae00cb25d418a6f..1556b759cd860e0c27852f8b5a57d545e4a11182 100644 (file)
@@ -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"
index 60612761b0f83a9bdfe4bc829ef31d27e9390757..128f6fc19f01b7b28f089468bba53fe4ed1c7de4 100644 (file)
@@ -11,7 +11,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-package site
+package hugo
 
 import (
        "testing"
index 4c639577bb41242699d567851e0751b519db956e..6ff3f8093d573c9649400983fd7eac20b16cb313 100644 (file)
@@ -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 (
index 4f5df0b0b29ea0e68062fc13e2a3122cbddb10a9..48713bb3b7054ff14df961b65d73d80ea8bff756 100644 (file)
@@ -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 (