core

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DisableColor = false
View Source
var TemplateFuncs = map[string]interface{}{

	"color": func(color string) string {
		if DisableColor {
			return ""
		}
		return ansi.ColorCode(color)
	},
}

Functions

func RunTemplate

func RunTemplate(tmpl string, data interface{}) (string, error)

func WriteAnswer

func WriteAnswer(t interface{}, name string, v interface{}) (err error)

Types

This section is empty.

Notes

Bugs

  • the current implementation might cause weird conflicts if there are two fields with same name that only differ by casing.

Jump to

Keyboard shortcuts

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