Documentation ¶
Index ¶
- Variables
- func BuildConfigSet(config *xconfig.XConfig) xcore.XDataset
- func BuildMessages(data map[language.Tag]map[string]string) *map[language.Tag]*xcore.XLanguage
- func BuildMessagesFS(fs embed.FS, path string) *map[language.Tag]*xcore.XLanguage
- func CreateDirectoryObject(clave, nivel int, prefix string) (string, error)
- func CreateKey(length int, chartype int) string
- func FileGetContents(filename string) (string, error)
- func FilePutContents(path, filename string, content string) error
- func GetMD5Hash(text string) string
- func ImageDownload(url, path, name string) (string, error)
- func LogMessage(log *log.Logger, lang *xcore.XLanguage, id string, params ...interface{}) string
- func Message(messages *map[language.Tag]*xcore.XLanguage, id string, params ...interface{}) string
- func MoveFile(sourcePath, names, destPath, named string, deleteold bool) error
- func UUID() string
- func WajafLogErrorMessage(log *log.Logger, lang *xcore.XLanguage, id string, params ...interface{}) string
Constants ¶
This section is empty.
Variables ¶
View Source
var Language language.Tag = language.English
Language is the default system language to search messages in this language in priority It may be changed by the code at anytime. Recommended to change it to your language when you init your libraries
Functions ¶
func BuildConfigSet ¶
func BuildMessages ¶
func BuildMessagesFS ¶ added in v0.0.16
func CreateDirectoryObject ¶ added in v0.0.16
CreateDirectoryObject crea directorio objeto retornar prefix + "/" + dirnivel
func CreateKey ¶
Creates a string of random chars and digits of length
chartype = -1: lowers, uppers and digits chartype = 0: only digits chartype = 1 only uppers chartype = 2 only lowers
func FileGetContents ¶ added in v0.0.16
func FilePutContents ¶ added in v0.0.16
FilePutContents : create the file if not exist and put a new line
func GetMD5Hash ¶
func ImageDownload ¶ added in v0.0.16
ImageDownload : Receive the url for get the image and the path of the folder target
func LogMessage ¶ added in v0.0.16
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.