Documentation
¶
Index ¶
- Variables
- func AssetsFolder() string
- func GetEnv(key, fallback string) string
- func GetMD5(data []byte) string
- func GetMimeType(file multipart.File) string
- func GetMimeTypeFromBytes(fileHeader []byte) string
- func GetPublicFolder() string
- func GetSaveMode() string
- func GetTemplateFilePath(name string) string
- func GetTemplateFolder() string
- func InArray(val string, array []string) (exists bool, index int)
- func ResetVersions()
- type AssetTools
- type HeaderMetaData
Constants ¶
This section is empty.
Variables ¶
View Source
var Render *render
Functions ¶
func AssetsFolder ¶
func AssetsFolder() string
func GetMimeType ¶
func GetMimeTypeFromBytes ¶
func GetPublicFolder ¶
func GetPublicFolder() string
TODO: Move this into a "public" type system to let me extend the render for easier loading of assets
func GetSaveMode ¶
func GetSaveMode() string
func GetTemplateFilePath ¶
TODO: Move template stuff into it's own "render" class
func GetTemplateFolder ¶
func GetTemplateFolder() string
func ResetVersions ¶
func ResetVersions()
Types ¶
type AssetTools ¶
type AssetTools struct {
// contains filtered or unexported fields
}
var AssetManager *AssetTools
func (*AssetTools) FileContents ¶
func (v *AssetTools) FileContents(fp string) string
func (*AssetTools) GetVersion ¶
func (v *AssetTools) GetVersion(file ...string) string
func (*AssetTools) New ¶
func (v *AssetTools) New()
func (*AssetTools) ReadFileLines ¶
func (v *AssetTools) ReadFileLines(path string) ([]string, error)
is always a comment in all files we read by lines... ¶
Click to show internal directories.
Click to hide internal directories.