Skip to content

cyberdelia/templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ This library is now obsolete, please use: https://golang.org/pkg/embed/

Templates

Templates allows you to bundle file template in your binary.

Installation

To install simply go get it:

$ go get github.com/cyberdelia/templates

Usage

Generate the package:

$ templates -s templates/ > templates/templates.go

Use it in your code:

template = template.Must(templates.Parse(nil))

Or using go generate:

//go:generate templates -s templates/ -o templates/templates.go