templates

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2021 License: MIT Imports: 9 Imported by: 0

README

⚠️ 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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL