Documentation ¶
Index ¶
- func DebugMsg(message string)
- func EmojiMsg(emoji string, message string)
- func ErrorMsg(message string)
- func GetErrorHTMLPath() string
- func GetRubikConfigPath() string
- func GetStaticFolderPath() string
- func GetTemplateFolderPath() string
- func MakeAndGetCacheDirPath() string
- func OverrideValues(source, env map[string]interface{}) map[string]interface{}
- func WarnMsg(message string)
- type Config
- type Logger
- type Project
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRubikConfigPath ¶
func GetRubikConfigPath() string
GetRubikConfigPath returns path of rubik config of current project
func GetStaticFolderPath ¶
func GetStaticFolderPath() string
GetStaticFolderPath returns the absolute static dir path
func GetTemplateFolderPath ¶
func GetTemplateFolderPath() string
GetTemplateFolderPath returns the absolute template dir path
func MakeAndGetCacheDirPath ¶
func MakeAndGetCacheDirPath() string
MakeAndGetCacheDirPath returns rubik's cache dir
func OverrideValues ¶
OverrideValues writes over the source map with env map
Types ¶
type Config ¶
type Config struct { ProjectName string `toml:"name"` Module string `toml:"module"` IsFlat bool `toml:"flat"` MaxProcs int `toml:"maxprocs"` Log bool App []Project `toml:"app"` X map[string]map[string]string `toml:"x"` }
Config is the main config for your rubik runtime this is declared inside a rubik.toml file
func GetRubikConfig ¶
func GetRubikConfig() *Config
GetRubikConfig returns Config: a structural representation of rubik.toml
Click to show internal directories.
Click to hide internal directories.