Skip to content

Latest commit

 

History

History
85 lines (65 loc) · 2.91 KB

README.md

File metadata and controls

85 lines (65 loc) · 2.91 KB

This package aims to provide an independent implementation of the Hugo template functions. https://gohugo.io/functions/ (view source)

Usage

Import the package:

import "github.com/drone/funcmap"

Provide the Funcmap when compiling your templates:

t, err := template.New("_").Funcs(funcmap.Funcs).Parse(text)

Functions

Crypto Functions

Encoding Functions

Date Functions

OS Functions

String Functions

Transform Functions

URL Functions