Skip to content
/ go-tmpl Public

Package tmpl provides templating capabilities, for the Go programming language.

License

Notifications You must be signed in to change notification settings

reiver/go-tmpl

Repository files navigation

go-tmpl

Package tmpl provides templating capabilities, for the Go programming language.

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-tmpl

GoDoc

Example

import (
	"github.com/reiver/go-tmpl"
)

// ...

type Person struct {
	Name string
	Age  int
	Sex  string
}

var person Person

person.Name = "Joe Blow"
person.Age  = "41"
person.Sex  = "male"

tmpl.Printt("Hello {{.Name}}, you are {{.Age}} years old.", person)

// Output:
// Hello Joe Blow, you are 41 years old.

About

Package tmpl provides templating capabilities, for the Go programming language.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages