Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Funcs = template.FuncMap{ "wrap": func(s string, width int) string { words := strings.Fields(strings.TrimSpace(s)) if len(words) == 0 { return s } wrapped := words[0] spaceLeft := width - len(wrapped) for _, word := range words[1:] { if len(word)+1 > spaceLeft { wrapped += "\n" + " " + word spaceLeft = width - len(word) } else { wrapped += " " + word spaceLeft -= 1 + len(word) } } return wrapped }, }
FuncMap is the template.FuncMap for the templates
Functions ¶
func Authenticated ¶
Authenticated is an extremely simple authentication
func InitServer ¶
func InitServer(flgPort, flgPath, flgTemplate, flgUser, flgPass string)
InitServer starts the resume server
Types ¶
type Colors ¶
type Colors struct {
Black string
Red string
Green string
Yellow string
Blue string
Magenta string
Cyan string
White string
LightBlack string
LightRed string
LightGreen string
LightYellow string
LightBlue string
LightMagenta string
LightCyan string
LightWhite string
Bold string
Underline string
Blink string
Inverse string
Bright string
Reset string
}
func GetANSIColors ¶
func GetANSIColors() Colors
Click to show internal directories.
Click to hide internal directories.
