Documentation
¶
Index ¶
- func ByteToString(orig []byte) string
- func FileExist(path string) bool
- func FindTargetDeviceID(mi *MountInfo) bool
- func HttpSendJson(method string, url string, data string) (string, error)
- func IntContains(s []int, e int) bool
- func IsDir(FilePath string) bool
- func IsDirectory(path string) bool
- func IsSoftLink(FilePath string) bool
- func MakeDev(major, minor string) int
- func RandString(n int) string
- func ReadLines(path string) ([]string, error)
- func RemoveDuplicateElement(addrs []string) []string
- func RewriteFile(path string, content string, perm os.FileMode)
- func SetBlockAccessible(path string) error
- func ShellExec(shellPath string) error
- func StringContains(s []string, e string) bool
- func UnixHttpSend(method string, unixPath string, uri string, data string) (string, error)
- func WriteFile(path string, content string) error
- func WriteFileAdd(path string, content string) error
- func WriteShellcodeToCrontab(header string, filePath string, shellcode string) error
- type MountInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteToString ¶
func HttpSendJson ¶ added in v0.1.10
func IntContains ¶ added in v1.0.4
IntContains check string array contains a int number
func IsDirectory ¶ added in v1.0.2
func IsSoftLink ¶
func RandString ¶
func ReadLines ¶ added in v1.0.3
ReadLines reads a whole file into memory and returns a slice of its lines. from https://stackoverflow.com/questions/5884154/read-text-file-into-string-array-and-write
func RemoveDuplicateElement ¶
func SetBlockAccessible ¶
set all block device accessible
func StringContains ¶ added in v1.0.4
StringContains check string array contains a string
func UnixHttpSend ¶
func WriteFileAdd ¶ added in v1.0.1
Types ¶
Click to show internal directories.
Click to hide internal directories.