INNER CODE UNIT · Go
NewStatusLine
asciimoo/wuzz · status-line.go:67
func NewStatusLine(format string) (*StatusLine, error) {
tpl, err := template.New("status line").Parse(format)
if err != nil {
return nil, err
}
return &StatusLine{
tpl: tpl,
}, nil
}