template

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Border added in v0.8.0

func Border() string

func BottomLine added in v0.8.0

func BottomLine() string

func Divider

func Divider() string

Divider helper tp create a dividing line

func FormatNumber added in v0.9.0

func FormatNumber(n int) string

func IsLastOption added in v0.8.0

func IsLastOption(i1, t1, i2, t2 int) bool

func Line

func Line(l int) string

Line draws a line of the given length

func MiddleLine added in v0.8.0

func MiddleLine() string

func NewLine added in v0.8.0

func NewLine() string

func TopLine added in v0.8.0

func TopLine() string

Types

type Templates added in v0.4.0

type Templates struct {
	// contains filtered or unexported fields
}

Templates a template rendering

func New added in v0.4.0

func New() *Templates

New creates a new Template struct

func (*Templates) AsString added in v0.4.0

func (t *Templates) AsString(n string, d interface{}) (s string, err error)

AsString renders the template corresponding to the name with the provided data

func (*Templates) Output added in v0.4.0

func (t *Templates) Output(n string, d interface{}) error

Output renders the template corresponding to the name with the provided data

Jump to

Keyboard shortcuts

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