Documentation ¶
Index ¶
- func ContainsForArrayString(target string, list []string) bool
- func CreateDirIfNotExists(dirPath string) error
- func GenerateFromTemplate(templateName string, data any, funcMap template.FuncMap) string
- func Get(requestUrl string, params map[string]string) ([]byte, error)
- func Post(requestUrl string, body string) ([]byte, error)
- func ReadExcelData(file string, sheetIndex int) (rs [][]string, err error)
- func ReadFile(filePath string) ([]byte, error)
- func ReadFileLines(filePath string) (fileLines []string, err error)
- func SplitArray[T any](array []T, step int) [][]T
- func WriteFile(filePath string, data []byte) error
- func WriteFileLines(path string, lines []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsForArrayString ¶
func CreateDirIfNotExists ¶
func GenerateFromTemplate ¶
GenerateFromTemplate 模版生成文本内容
func ReadFileLines ¶
func SplitArray ¶
func WriteFileLines ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.