Documentation ¶
Index ¶
- func CanBeEdited(filename string) bool
- func CopyFile(old, new string) error
- func Defined(data interface{}, field string) bool
- func Dict(values ...interface{}) (map[string]interface{}, error)
- func GetTemplate(r *http.Request, functions template.FuncMap, templates ...string) (*template.Template, error)
- func IsMap(sth interface{}) bool
- func IsSlice(sth interface{}) bool
- func ParseComponents(r *http.Request) []string
- func Run(c *config.Config)
- func SplitCapitalize(name string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanBeEdited ¶
CanBeEdited checks if the extension of a file is supported by the editor
func GetTemplate ¶
func GetTemplate(r *http.Request, functions template.FuncMap, templates ...string) (*template.Template, error)
GetTemplate is used to get a ready to use template based on the url and on other sent templates
func ParseComponents ¶
ParseComponents parses the components of an URL creating an array
func SplitCapitalize ¶
SplitCapitalize splits a string by its uppercase letters and capitalize the first letter of the string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.