Documentation
¶
Index ¶
- func CheckList(target []string) bool
- func CheckPid(pid string) (res string)
- func DName(str string) (srt string)
- func DelInList(target string, list []string) []string
- func DelListInList(original []string, remove []string) []string
- func ExportExcel(sheetName string, headers []string, rows [][]interface{}, f *excelize.File) (*excelize.File, error)
- func ExtractPortString(rawURL string) (string, error)
- func FileExists(filename string) bool
- func FolderExists(folderpath string) bool
- func FormatInvest(scale string) float64
- func GetConfigPath() string
- func HasStdin() bool
- func IsInList(target string, list []string) bool
- func Md5(src string) string
- func MergeMap(s map[string][]map[string]string, list map[string][]map[string]string)
- func PathExists(path string) (bool, error)
- func RandomElement(c string) string
- func RangeRand(min, max int64) int64
- func ReadFileOutLine(filename string) []string
- func ReadImf(input io.Reader) []string
- func SetStr(target []string) []string
- func StreamWriterFunc(contents [][]string)
- func TBS(h []string, ep []string, name string, data []gjson.Result)
- func VerifyEmailFormat(email string) bool
- func WriteFile(str string, path string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DelListInList ¶
func ExportExcel ¶
func ExportExcel(sheetName string, headers []string, rows [][]interface{}, f *excelize.File) (*excelize.File, error)
ExportExcel 导出Excel文件 sheetName 工作表名称, 注意这里不要取sheet1这种名字,否则导致文件打开时发生部分错误。 headers 列名切片, 表头 rows 数据切片,是一个二维数组 f 为了创建多个单元格,得把标签往外放
func ExtractPortString ¶
func FileExists ¶
FileExists checks if a file exists and is not a directory
func FolderExists ¶
FolderExists checks if a folder exists
func FormatInvest ¶
func GetConfigPath ¶
func GetConfigPath() string
func ReadFileOutLine ¶
func StreamWriterFunc ¶
func StreamWriterFunc(contents [][]string)
func VerifyEmailFormat ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.