Documentation ¶
Index ¶
- func CreateDirectory(path string, perm fs.FileMode) (string, error)
- func CreateLogFile(path string, perm fs.FileMode) (file *os.File, err error)
- func CreatePath(path string, perm fs.FileMode) (string, error)
- func FileExists(path string) bool
- func GetAbsolutePath(path string) (string, error)
- func Getenv(env string, def ...string) string
- func IsInt(s string) bool
- func IsSuccess(status int) bool
- func RandomString(n int32) string
- func UnsafeBytes(s string) (bs []byte)
- func UnsafeString(b []byte) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
func GetAbsolutePath ¶
func RandomString ¶
func UnsafeBytes ¶
#nosec G103 UnsafeBytes returns a byte pointer without allocation
func UnsafeString ¶
#nosec G103 UnsafeString returns a string pointer without allocation
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.