tpl: Add godoc packages comments

Also fix package name in tpl/templates.
This commit is contained in:
Cameron Moore 2018-11-29 21:32:53 -06:00 committed by Bjørn Erik Pedersen
parent 8346848109
commit 30a7c9ea37
23 changed files with 29 additions and 3 deletions

View file

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// Package cast provides template functions for data type conversions.
package cast package cast
import ( import (

View file

@ -11,6 +11,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// Package collections provides template functions for manipulating collections
// such as arrays, maps, and slices.
package collections package collections
import ( import (

View file

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// Package compare provides template functions for comparing values.
package compare package compare
import ( import (

View file

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// Package crypto provides template functions for cryptographic operations.
package crypto package crypto
import ( import (

View file

@ -11,6 +11,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// Package data provides template functions for working with external data
// sources.
package data package data
import ( import (

View file

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// Package encoding provides template functions for encoding content.
package encoding package encoding
import ( import (

View file

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// Package fmt provides template functions for formatting strings.
package fmt package fmt
import ( import (

View file

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// Package images provides template functions for manipulating images.
package images package images
import ( import (

View file

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// Package inflect provides template functions for the inflection of words.
package inflect package inflect
import ( import (

View file

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// Package lang provides template functions for content internationalization.
package lang package lang
import ( import (

View file

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// Package math provides template functions for mathmatical operations.
package math package math
import ( import (

View file

@ -11,6 +11,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// Package os provides template functions for interacting with the operating
// system.
package os package os
import ( import (

View file

@ -11,6 +11,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// Package partials provides template functions for working with reusable
// templates.
package partials package partials
import ( import (

View file

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// Package path provides template functions for manipulating paths.
package path package path
import ( import (

View file

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// Package resources provides template functions for working with resources.
package resources package resources
import ( import (

View file

@ -11,6 +11,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// Package safe provides template functions for escaping untrusted content or
// encapsulating trusted content.
package safe package safe
import ( import (

View file

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// Package strings provides template functions for manipulating strings.
package strings package strings
import ( import (

View file

@ -11,7 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
package partials package templates
import ( import (
"github.com/gohugoio/hugo/deps" "github.com/gohugoio/hugo/deps"

View file

@ -11,7 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
package partials package templates
import ( import (
"testing" "testing"

View file

@ -11,7 +11,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
package partials // Package templates provides template functions for working with templates.
package templates
import ( import (
"github.com/gohugoio/hugo/deps" "github.com/gohugoio/hugo/deps"

View file

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// Package time provides template functions for measuring and displaying time.
package time package time
import ( import (

View file

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// Package transform provides template functions for transforming content.
package transform package transform
import ( import (

View file

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// Package urls provides template functions to deal with URLs.
package urls package urls
import ( import (