Documentation ¶
Index ¶
- func AppendIPList(src, dst []string) []string
- func ContainList(list []string, toComplete string) (containerList []string)
- func EnvFromMap(shell string, envs map[string]string) string
- func FormatSize(size int64) (Size string)
- func GetHostV1FromAliasName(aliasName string) (name, role, index string)
- func GetID(name, role string, index int) string
- func IPListRemove(ss []string, s string) (result []string)
- func In(key string, slice []string) bool
- func InList(key string, slice []string) bool
- func IsEmptyLine(str string) bool
- func IsLetterOrNumber(k string) bool
- func NotInIPList(key string, slice []string) bool
- func RandString(len int) string
- func ReduceIPList(src, dst []string) []string
- func RemoveDuplicate(list []string) []string
- func RemoveSliceEmpty(list []string) (fList []string)
- func RemoveStrSlice(src, dst []string) []string
- func Reverse(s []string) []string
- func SliceRemoveStr(ss []string, s string) (result []string)
- func SortIPList(iplist []string)
- func SplitRemoveEmpty(s, sep string) []string
- func TrimQuotes(s string) string
- func TrimSpaceWS(str string) string
- func TrimWS(str string) string
- func WrapExecResult(host, command string, output []byte, err error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendIPList ¶
func ContainList ¶
func FormatSize ¶
func GetHostV1FromAliasName ¶
func IPListRemove ¶
func IsEmptyLine ¶
func IsLetterOrNumber ¶
func NotInIPList ¶
func ReduceIPList ¶
func RemoveDuplicate ¶
RemoveDuplicate removes duplicate entry in the list.
func RemoveSliceEmpty ¶
func RemoveStrSlice ¶
RemoveStrSlice remove dst element from src slice
func SliceRemoveStr ¶
func SortIPList ¶
func SortIPList(iplist []string)
func SplitRemoveEmpty ¶
func TrimQuotes ¶
func TrimSpaceWS ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.