Documentation ¶
Index ¶
- Variables
- func CleanDoubleColonPattern(input string) string
- func CleanUpString(s string) string
- func ConvertAllToString(value interface{}) string
- func CopyFile(sourcePath, targetPath string) error
- func CreateFile(fullPath string, deleteIfExist bool) (*os.File, error)
- func CreateFolder(folder string) error
- func DeleteFile(filePath string) error
- func DeleteFolder(folderPath string) error
- func GetAbsolutePath(path string) (string, error)
- func GetColoredHttpMethod(httpMethod string) string
- func GetCurrentDirectory() (string, error)
- func HashByte(queryByte []byte) string
- func HashString(query string) string
- func IsFileExists(filename string) bool
- func IsFolderExists(folderPath string) bool
- func IsStringContainSpace(input string) bool
- func MatchReplacer(query string, paramKey string, replacement string) string
- func ParseBool(str string) bool
- func ParseTag(rawTag string) map[string]string
- func RemoveByIndex[T any](source []T, index []int) []T
- func RemoveParenthesesContent(input string) string
- func SendRequest(httpMethod string, url string, body []byte, ...) ([]byte, error)
- func SnakeCaseToPascalCase(s string) string
- func ToCamelCase(s string) string
- func ToGoModuleName(s string) string
- func ToSnakeCase(s string) string
- type SendRequestError
Constants ¶
This section is empty.
Variables ¶
View Source
var FileLogger = logger.HcLog().Named("raiden.utils.file")
Functions ¶
func CleanDoubleColonPattern ¶
func CleanUpString ¶
func ConvertAllToString ¶
func ConvertAllToString(value interface{}) string
func CreateFolder ¶
func DeleteFile ¶
func DeleteFolder ¶
func GetAbsolutePath ¶
func GetColoredHttpMethod ¶
func GetCurrentDirectory ¶
func HashString ¶
func IsFileExists ¶
func IsFolderExists ¶
func IsStringContainSpace ¶
func RemoveByIndex ¶
Function to remove multiple elements by multiple index
func RemoveParenthesesContent ¶
RemoveParenthesesContent removes content within parentheses from a string.
func SendRequest ¶
func SnakeCaseToPascalCase ¶
func ToCamelCase ¶
func ToGoModuleName ¶
func ToSnakeCase ¶
Types ¶
type SendRequestError ¶
func (SendRequestError) Error ¶
func (s SendRequestError) Error() string
Click to show internal directories.
Click to hide internal directories.