package main import ( "strings" ) // html templates are here instead of an .html file to avoid depending on external files // in this way, everything is inside the binary func fillCSSintoTemplate(template string) string { if strings.Contains(template, "[CSS]") { template = strings.Replace(template, "[CSS]", cssTemplate, -1) } return template } var dirTemplate = ` {{.Title}} [CSS]
{{.Content}}
` var htmlTemplate = ` {{.Title}} [CSS]
root
{{.Content}}
` const errTemplate = ` {{.Title}} root

File doesn't exist



Back to dir menu `