Documentation ¶
Index ¶
- Constants
- func CheckFileExists(fileName, description, usage string)
- func GenerateCombinations(source []string, m int, emit func([]string))
- func GenerateCurrentWorkingDirFilePath(fileName string) string
- func GetCurrentWorkingDir() string
- func GetDemoHTMLFilePath() string
- func GetFormattedTimeInfo() string
- func GetNumberOfField(i interface{}) int
- func GetXlsxFiles() []string
- func IsFileExists(fileName string) bool
- func ParseLatinName(latinNameString string) entities.LatinName
- func ReadContent(filename string) string
- func ReadLines(fileName string) []string
- func RemoveDuplicates(slice []string) []string
- func WriteContent(filename, content string)
- type LogWriter
- type ValidationResult
Constants ¶
View Source
const (
TimeFormatForFile = "%"
)
Variables ¶
This section is empty.
Functions ¶
func CheckFileExists ¶
func CheckFileExists(fileName, description, usage string)
CheckFileExists checks whether file exists.
func GenerateCombinations ¶
生成 combinations
Usage:
utils.GenerateCombinations([]string{"茎", "叶", "花", "果"}, 2, func(c []string) { log.Println(c) })
Results: [茎 叶] [茎 花] [茎 果] [叶 花] [叶 果] [花 果]
func GenerateCurrentWorkingDirFilePath ¶ added in v1.6.0
func GetCurrentWorkingDir ¶ added in v1.6.0
func GetCurrentWorkingDir() string
Get current working directory
func GetDemoHTMLFilePath ¶ added in v1.6.0
func GetDemoHTMLFilePath() string
func GetFormattedTimeInfo ¶ added in v1.6.0
func GetFormattedTimeInfo() string
func GetNumberOfField ¶
func GetNumberOfField(i interface{}) int
func GetXlsxFiles ¶ added in v1.6.0
func GetXlsxFiles() []string
func IsFileExists ¶ added in v1.6.0
IsFileExists returns true if file exists.
func ParseLatinName ¶
从字符串中解析拉丁名,以及属名及种名
func ReadContent ¶ added in v1.6.0
ReadContent reads a file and return file content as a string.
func WriteContent ¶ added in v1.6.0
func WriteContent(filename, content string)
WriteContent write string content to a file.
Types ¶
type ValidationResult ¶ added in v1.3.0
数据校验结果
func DataValidation ¶ added in v1.3.0
func DataValidation(offlineDataMatrix, snDataMatrix entities.DataMatrix) (validationResult ValidationResult)
Click to show internal directories.
Click to hide internal directories.