Code for an article I wrote about processing Go text templates using custom functions.
Run Demo
To run the code examples seen in the article:
git clone https://github.com/kirklewis/go-template-processing.git
cd go-template-processing
export GOPATH=$PWD
go run main.go
Run Tests
go test -v -run '' ./tests/...
Note: This project only supplements the aforementioned article. As such, I've kept the project structure simple. It should not be treated like a Go module to be installed.
License MIT
Copyright 2019 Kirk Lewis.