Documentation
¶
Index ¶
- Constants
- func AsciiToLower(str string) string
- func AsciiToLowerByteListInPlace(str []byte)
- func AverageRandomIpSlice(ipSlice []string, partNum int, perPartCount int) (result []string)
- func ByteListIndexAll(b []byte, keyword []byte) (outList []int)
- func ContainsAnyIgnoreCase(s string, subList []string) (result map[string]int)
- func ContainsAnyInSlice(toSearch string, KeywordSlice []string) bool
- func ContainsIgnoreCase(s string, sub string) (ok bool)
- func Fields(s string) []string
- func FirstLetterToUpper(s string) string
- func GetByteArrayFromStringNoAlloc(s string) []byte
- func GetCountByteNumber(s string, b byte) int
- func GetIntersection(lists ...[]string) []string
- func GetIntersectionV2(lists ...[]string) []string
- func GetIntersectionV3(lists ...[]string) []string
- func GetIntersectionV4(lists ...[]string) []string
- func GetMonospaceWidth(str string) int
- func GetShareCommonPrefix(s1 string, s2 string) string
- func GetSmallestBiggerStringPrefix(prefix string) string
- func GetSpaceArrayByIndex(s string, index int) string
- func GetStringFromByteArrayNoAlloc(b []byte) string
- func IsAllAlphabet(s string) bool
- func IsAllAlphabetNum(s string) bool
- func IsAllAscii(s string) bool
- func IsAllDecodeByUtf8(p []byte) bool
- func IsAllDecodeByUtf8String(p string) bool
- func IsAllNum(s string) bool
- func IsAllPrintableUtf8(p []byte) bool
- func IsEqualCheckOrder(lists ...[]string) bool
- func IsEqualIgnoreOrder(lists ...[]string) bool
- func IsGoodFileName(s string) bool
- func IsInKeywordSlice(KeywordSlice []string, toSearch string) bool
- func IsInSlice(slice []string, s string) bool
- func IsInSliceBSearch(ss []string, s string) bool
- func IsSafePrintByte(s []byte) bool
- func LastTwoPartSplit(originS string, splitS string) (p1 string, p2 string, ok bool)
- func LineDataToSlice(lineData string) []string
- func MapStringBoolToSortedSlice(m map[string]bool) []string
- func MergeNoRepeat(lists ...[]string) []string
- func MustStringBetweenFirstSubString(s string, sub1 string, sub2 string) string
- func NewRootPrefixNode() *prefixNode
- func Padding(s string, expectTotalSize int) string
- func ReadFirstStringBetweenWithByteList(content []byte, startPart []byte, endPart []byte) []byte
- func RemoveWhiteSpace(in string) string
- func SliceNoRepeat(slice []string) []string
- func SliceNoRepeatAdd(slice []string, s string) []string
- func SliceNoRepeatMerge(s1 []string, s2 []string) []string
- func SliceRemove(slice []string, s string) []string
- func SplitLine(s string) []string
- func SplitLineNoEmptyLine(s string) []string
- func SplitLineTrimSpace(s string) []string
- func SplitTrimSpace(s string, sep string) []string
- func StringAfterFirstSubString(s string, subString string) string
- func StringAfterLastSubString(s string, subString string) string
- func StringBeforeFirstSubString(s string, subString string) string
- func StringBeforeFirstSubStringOrInput(s string, subString string) string
- func StringBeforeLastSubString(s string, subString string) string
- func StringBetweenFirstSubStringIgnoreNotExist(s string, sub1 string, sub2 string) string
- func StringFieldsAtPos(s string, pos int) string
- func StringSliceAverageSplit(slice []string, partNum int) (subSlice [][]string)
- func StringSliceClone(s []string) []string
- func StringSliceExcept(inList []string, exceptList []string) []string
- func StringSliceLastIndex(slice []string, search string) (pos int)
- func StringSliceMerge(objList ...interface{}) []string
- func StringSplitToTwoPart(s string, sep string) (string, string)
- func SubStr(s string, from int, to int) string
- func TrimAllLineSpaceInPrefix(s string) string
- func TrimMaxSize(s string, maxSize int) string
- func TrimMaxSizeByte(s string, maxSize int) string
- func TrimMaxSizeWithSubfix(s string, maxSize int, subfix string) string
- func TrimOneChar(s string, c byte) string
- type LineSpliter
- type RangeMinMax
- func (kr *RangeMinMax) AddMaxKeyInclude(maxKey string)
- func (kr *RangeMinMax) AddMaxKeyNotInclude(maxKeyNotInclude string)
- func (kr *RangeMinMax) AddMinKeyInclude(minKey string)
- func (kr *RangeMinMax) AddMinKeyNotInclude(minKeyNotInclude string)
- func (kr *RangeMinMax) AddPrefix(prefix string)
- func (kr *RangeMinMax) GetMaxKeyNotInclude() string
- func (kr *RangeMinMax) GetMinKeyInclude() string
- func (kr *RangeMinMax) HasRange() bool
- func (kr *RangeMinMax) IsInRange(s string) bool
- func (kr *RangeMinMax) ToMinKeyIncludeAndMaxKeyNotIncludeRange() RangeMinMax
- type SliceExistChecker
Constants ¶
View Source
const ( OkChar = "✔" ErrorChar = "✘" )
Variables ¶
This section is empty.
Functions ¶
func AsciiToLower ¶
func AsciiToLowerByteListInPlace ¶
func AsciiToLowerByteListInPlace(str []byte)
func AverageRandomIpSlice ¶
func ByteListIndexAll ¶
func ContainsAnyIgnoreCase ¶
func ContainsAnyInSlice ¶
func ContainsIgnoreCase ¶
func FirstLetterToUpper ¶
func GetCountByteNumber ¶
func GetIntersection ¶
func GetIntersectionV2 ¶
func GetIntersectionV3 ¶
func GetIntersectionV4 ¶
func GetMonospaceWidth ¶
func GetShareCommonPrefix ¶
func GetSpaceArrayByIndex ¶
func IsAllAlphabet ¶
func IsAllAlphabetNum ¶
func IsAllAscii ¶
func IsAllDecodeByUtf8 ¶
func IsAllDecodeByUtf8String ¶
func IsAllPrintableUtf8 ¶
func IsEqualCheckOrder ¶
func IsEqualIgnoreOrder ¶
func IsGoodFileName ¶
func IsInKeywordSlice ¶
func IsInSliceBSearch ¶
func IsSafePrintByte ¶
func LastTwoPartSplit ¶
func LineDataToSlice ¶
func MergeNoRepeat ¶
func NewRootPrefixNode ¶
func NewRootPrefixNode() *prefixNode
func RemoveWhiteSpace ¶
func SliceNoRepeat ¶
func SliceNoRepeatAdd ¶
func SliceNoRepeatMerge ¶
func SliceRemove ¶
func SplitLineNoEmptyLine ¶
func SplitLineTrimSpace ¶
func SplitTrimSpace ¶
func StringFieldsAtPos ¶
func StringSliceAverageSplit ¶
func StringSliceClone ¶
func StringSliceExcept ¶
func StringSliceLastIndex ¶
func StringSliceMerge ¶
func StringSliceMerge(objList ...interface{}) []string
func TrimMaxSize ¶
func TrimMaxSizeByte ¶
func TrimMaxSizeWithSubfix ¶
func TrimOneChar ¶
Types ¶
type LineSpliter ¶
type LineSpliter struct {
// contains filtered or unexported fields
}
func NewLineSpliter ¶
func NewLineSpliter(content string) *LineSpliter
func (*LineSpliter) GetLineContent ¶
func (ls *LineSpliter) GetLineContent(lineNumber int) string
func (*LineSpliter) GetLineNumByPos ¶
func (ls *LineSpliter) GetLineNumByPos(pos int) int
func (*LineSpliter) GetTotalLineNumber ¶
func (ls *LineSpliter) GetTotalLineNumber() int
type RangeMinMax ¶
type RangeMinMax struct {
// contains filtered or unexported fields
}
func (*RangeMinMax) AddMaxKeyInclude ¶
func (kr *RangeMinMax) AddMaxKeyInclude(maxKey string)
func (*RangeMinMax) AddMaxKeyNotInclude ¶
func (kr *RangeMinMax) AddMaxKeyNotInclude(maxKeyNotInclude string)
func (*RangeMinMax) AddMinKeyInclude ¶
func (kr *RangeMinMax) AddMinKeyInclude(minKey string)
func (*RangeMinMax) AddMinKeyNotInclude ¶
func (kr *RangeMinMax) AddMinKeyNotInclude(minKeyNotInclude string)
func (*RangeMinMax) AddPrefix ¶
func (kr *RangeMinMax) AddPrefix(prefix string)
func (*RangeMinMax) GetMaxKeyNotInclude ¶
func (kr *RangeMinMax) GetMaxKeyNotInclude() string
func (*RangeMinMax) GetMinKeyInclude ¶
func (kr *RangeMinMax) GetMinKeyInclude() string
func (*RangeMinMax) HasRange ¶
func (kr *RangeMinMax) HasRange() bool
func (*RangeMinMax) IsInRange ¶
func (kr *RangeMinMax) IsInRange(s string) bool
func (*RangeMinMax) ToMinKeyIncludeAndMaxKeyNotIncludeRange ¶
func (kr *RangeMinMax) ToMinKeyIncludeAndMaxKeyNotIncludeRange() RangeMinMax
type SliceExistChecker ¶
func NewSliceExistChecker ¶
func NewSliceExistChecker(slice ...string) SliceExistChecker
func (SliceExistChecker) Add ¶
func (c SliceExistChecker) Add(s string) bool
func (SliceExistChecker) FindNotExistOne ¶
func (c SliceExistChecker) FindNotExistOne() (NotExist string)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.