Documentation ¶
Index ¶
- func CreateFilePath(path string) error
- func CutPath(path string, count int) (string, error)
- func CutPathLast(path string, count int) (string, error)
- func FileInfo(f string) os.FileInfo
- func FistIsLower(str string) bool
- func FistToLower(str string) string
- func FixPathSeparator(path string) string
- func GetAllPath(path string) ([]string, error)
- func GetFilePath(filepath string, fileName string) ([]string, error)
- func GetPackages(dir string) (map[string]*ast.Package, error)
- func GetTagName(tag string) string
- func GoFmt(path string)
- func IsExist(f string) bool
- func IsFile(f string) bool
- func LastName(path string) string
- func MapToAssciiSortJson(m map[string]interface{}) string
- func MapToSplice[T comparable, V any](m map[T]V) []T
- func PrintJson(js interface{})
- func ProjectPath() (string, error)
- func ReadAll(filePth string) ([]byte, error)
- func ToCamelCase(s string) string
- func ToCamelFirstLowerCase(s string) string
- func ToJsonString(js interface{}) string
- func ToSnakeCase(s string) string
- func WriteByteFile(filePath string, data []byte) error
- type Empty
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFilePath ¶
func FistIsLower ¶
func FistToLower ¶
func FixPathSeparator ¶ added in v0.1.9
func GetAllPath ¶ added in v0.1.9
func GetFilePath ¶ added in v0.1.9
func GetTagName ¶ added in v1.2.2
func MapToAssciiSortJson ¶
func MapToSplice ¶
func MapToSplice[T comparable, V any](m map[T]V) []T
func ProjectPath ¶
func ToCamelCase ¶
*
- 蛇形转驼峰
- @description xx_yy to XxYx xx_y_y to XxYY
- @date 2020/7/30
- @param s要转换的字符串
- @return string *
func ToCamelFirstLowerCase ¶
*
- 蛇形转驼峰
- @description xx_yy to XxYx xx_y_y to XxYY
- @date 2020/7/30
- @param s要转换的字符串
- @return string *
func ToJsonString ¶
func ToJsonString(js interface{}) string
func ToSnakeCase ¶
*
- 驼峰转蛇形 snake string
- @description XxYy to xx_yy , XxYY to xx_y_y
- @param s 需要转换的字符串
- @return string *
func WriteByteFile ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.