Versions in this module Expand all Collapse all v1 v1.6.1 Jul 13, 2019 v1.5.2 Dec 22, 2018 Changes in this version + func AppendAt(slice []string, pos int, insert ...string) []string + func ByteToHexStr(bytes []byte) string + func CharsetToUtf8(str string) string + func Check(err error, message ...string) + func CheckP(err error) + func DeleteSl(slice []string, pos int) []string + func DeleteSl1(slice []string, pos int) []string + func DetectCharsetFile(filename string) (name string) + func DetectCharsetStr(inputStr string) (name string) + func FileCharsetSwitch(inCharset, outCharset, inFilename string, outFilename ...string) + func FindDate(inputString, fmtDate string) []string + func FormatDate(fmtDate string, inpDate string) time.Time + func FormatText(str string, max int) string + func GenFileName() string + func GetEOL(filename string) string + func GetSep(str string) []string + func GetStrIndex(slice []string, item string) int + func IsDate(inString string) bool + func IsError(err error) bool + func IsExist(slice [][]string, cmpRow []string) bool + func IsFloat(inString string) bool + func LinesToTextFile(filename string, values interface{}) error + func Md5String(inString string) string + func Md5Sum(filename string) string + func NewDateFormat() []string + func PathSep() string + func Preppend(slice []string, prepend ...string) []string + func ReadCsv(filename, comma string, fields, startLine int, endLine ...int) [][]string + func ReadFile(filename string) []byte + func ReadJson(filename string, interf interface{}) + func RemovIfExist(filename string) + func RemoveDupSl(slice []string) []string + func RemoveNonAlNum(inString string) string + func ReplaceSpace(inString string) string + func SearchSl(find string, table [][]string, cs, ww, rx bool) ([][]string, error) + func SetEOL(filename, eol string) + func SliceSortDate(slice [][]string, fmtDate string, dateCol, secDateCol int, ascendant bool) [][]string + func SliceSortFloat(slice [][]string, col int, ascendant bool, decimalChar string) + func SliceSortString(slice [][]string, col int, ascendant, caseSensitive bool) + func StringDecimalSwitchFloat(decimalChar, inString string) float64 + func StringToCharacterClasses(inpString string, caseSensitive, strictMode bool) string + func TempMake(prefix string) string + func TempRemove(fName string) + func TextFileToLines(filename string, opt ...string) []string + func TrimSpace(inputString string, cmds ...string) string + func TruncateString(inString, prefix string, max, option int) string + func Use(vals ...interface{}) + func WriteCsv(filename, comma string, rows [][]string) + func WriteJson(filename string, interf interface{}) + func WriteTextFile(filename, data string, appendIfExist ...bool) + type CharsetList struct + FullCharsetList []string + SimpleCharsetList []string + func NewCharsetList() CharsetList + func (cl *CharsetList) GetCharset(pos int) (chLong, chShort string) + func (cl *CharsetList) GetPos(ch string) (posLong, posShort int) + func (cl *CharsetList) Init() + type Entry struct + InPos int + OutPos int + Str string + Val int + type File struct + Absolute string + Ext string + Name string + NameNoExt string + OsListSep string + OsSep string + Output string + OutputNewExt string + Path string + RealName string + RealPath string + func SplitFilePath(filename string, toAdd ...string) File + type RowStore struct + Cnt int + Idx int + Str string + Tot int + func AppendIfMissing(inputSlice []RowStore, input RowStore) []RowStore + func AppendIfMissingC(inputSlice []RowStore, input RowStore) []RowStore + func FindCountStr(str, regExpression string) []RowStore + func FindQuote(str string, sep string) []RowStore