Documentation ¶
Index ¶
- Constants
- func CWebp(file, out string) error
- func Contains(s, sep string) bool
- func CopyFile(path, dst string) error
- func FormatJsonLangFile(root, path string) (map[string]string, error)
- func FormatParam(path string) string
- func GetLang(r *http.Request) string
- func GetLangShort(r *http.Request) string
- func Gzip(file, out string) error
- func LoadJsonLangFile(path string) (map[string]string, error)
- func LoadYamlLangFile(path string) ([]byte, error)
- func MapOf(kvs ...interface{}) (map[string]interface{}, error)
- func MatchInParam(s1, s2 string) bool
- func MatchRoute(path, url string) bool
- func MinifyCss(file, out string) error
- func MinifySvg(file, out string) error
- func Obfuscate(file, out string) error
- func ParseTemplates(dir string, funcs template.FuncMap) (*template.Template, error)
- func ReplaceFieldIND(dst, replacement interface{}) error
- func ShouldCWebp(ext string) bool
- func ShouldGZip(name string) bool
Constants ¶
View Source
const (
LANG_FILE_EXT = ".json"
)
Variables ¶
This section is empty.
Functions ¶
func FormatJsonLangFile ¶ added in v1.1.0
func FormatParam ¶
func GetLangShort ¶ added in v1.0.7
func LoadJsonLangFile ¶ added in v1.1.0
func LoadYamlLangFile ¶ added in v1.1.0
func MatchInParam ¶
func MatchRoute ¶
func ParseTemplates ¶
func ReplaceFieldIND ¶
func ReplaceFieldIND(dst, replacement interface{}) error
ReplaceFieldIND replace field if not default value
func ShouldCWebp ¶
func ShouldGZip ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.