Documentation
¶
Index ¶
- func CheckIfFileExists(filepath string) error
- func CommonRendering(data embed.FS, pathtorender string, i interface{}) (string, error)
- func ContainsStringInSlice(s []string, toFind string) bool
- func ContainsStringInSliceIgnoreCase(s []string, toFind string) bool
- func CreateDir(path string) error
- func CreatePayloadFile(name, ext, source string) (*os.File, error)
- func GetCurrentDate() string
- func GetEnglishWords() []string
- func GetField(v interface{}, field string) string
- func GetLanguageByteArray(data []byte, lang string) string
- func GetMD5Hash(payload []byte) string
- func GetSHA1Hash(payload []byte) string
- func GetSHA256Hash(payload []byte) string
- func HasField(v interface{}, name string) bool
- func RandomInt(start, end int) int
- func RandomString(n int) string
- func RandomStringOnlyChar(n int) string
- func RemoveDuplicateStr(strSlice []string) []string
- func RemoveExt(filename string) string
- func ReverseSlice(ss []interface{})
- func SetDebug(source interface{}, fieldName string, debugValue bool)
- func SetField(source interface{}, fieldName string, fieldValue string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfFileExists ¶
func CommonRendering ¶
func ContainsStringInSlice ¶
func CreatePayloadFile ¶
TOD: Rework that function
func GetCurrentDate ¶
func GetCurrentDate() string
func GetEnglishWords ¶
func GetEnglishWords() []string
func GetLanguageByteArray ¶ added in v0.2.0
func GetMD5Hash ¶
func GetSHA1Hash ¶
func GetSHA256Hash ¶
func RandomString ¶
func RandomStringOnlyChar ¶
func RemoveDuplicateStr ¶
func ReverseSlice ¶
func ReverseSlice(ss []interface{})
https://stackoverflow.com/questions/34816489/reverse-slice-of-strings
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.