https://github.com/go-task/template
A fork of Golang's standard text/template package with custom functionality for Task
https://github.com/go-task/template
Last synced: 6 months ago
JSON representation
A fork of Golang's standard text/template package with custom functionality for Task
- Host: GitHub
- URL: https://github.com/go-task/template
- Owner: go-task
- License: other
- Created: 2024-04-22T00:21:16.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-16T20:58:52.000Z (almost 2 years ago)
- Last Synced: 2025-01-18T17:56:51.185Z (over 1 year ago)
- Language: Go
- Size: 104 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-task/template
This is a forked version of Golang's standard
[`text/template`](https://pkg.go.dev/text/template) package. It is designed to
be a drop-in replacement for the original package with some additional features.
## Features
- `Template.Resolve` - This method will return a value from the given dataset by
using Go's templating syntax. It supports any template consisting of a single
`ActionNode`. This includes the use of dot notation and templating functions.
This solves a limitation of the public API of the original package which meant
that it was only ever possible to return a string representation of a value
from a template.