Documentation ¶
Index ¶
- Constants
- func Contains(a, b SSortedStrings) bool
- func Equals(a, b SSortedStrings) bool
- func EscapeEchoString(str string) (string, error)
- func EscapeString(str string, pairs [][]string) string
- func FilterEmpty(input []string) []string
- func GenId(ids ...string) string
- func GenerateRoleName(roleName string) string
- func GetCharTypeCount(str string) int
- func GetMD5Hash(text string) string
- func HasPrefixIgnoreCase(str string, prefix string) bool
- func HasSuffixIgnoreCase(str string, suffix string) bool
- func HashIdsMac(ids ...string) string
- func IsPrintableAscii(b byte) bool
- func IsPrintableAsciiString(str string) bool
- func IsUtf8(str string) bool
- func ParseNamePattern2(name string) (string, string, int, int, byte)
- func PrettyFloat(f float64, precision int) string
- func RemoveUtf8Strings(idOrNames []string) []string
- func Split(a, b SSortedStrings) (aNoB SSortedStrings, aAndB SSortedStrings, bNoA SSortedStrings)
- func SplitByQuotation(line string) ([]string, error)
- func UTF82GB18030(s []byte) ([]byte, error)
- type SSortedStrings
- func (ss SSortedStrings) Append(ele ...string) SSortedStrings
- func (ss SSortedStrings) Contains(needle string) bool
- func (ss SSortedStrings) ContainsAll(needles ...string) bool
- func (ss SSortedStrings) ContainsAny(needles ...string) bool
- func (ss SSortedStrings) Index(needle string) (int, bool)
- func (ss SSortedStrings) Remove(ele ...string) SSortedStrings
Constants ¶
View Source
const RandomChar = '?'
View Source
const RepChar = '#'
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains(a, b SSortedStrings) bool
func Equals ¶
func Equals(a, b SSortedStrings) bool
func EscapeEchoString ¶
func EscapeString ¶
func FilterEmpty ¶
func GenerateRoleName ¶
Qcloud: 1-128个英文字母、数字和+=,.@_- Aws: 请使用字母数字和‘+=,.@-_’字符。 最长 64 个字符 Common: 1-64个字符, 数字字母或 +=,.@-_
func GetCharTypeCount ¶
func GetMD5Hash ¶
func HasPrefixIgnoreCase ¶
func HasSuffixIgnoreCase ¶
func HashIdsMac ¶
func IsPrintableAscii ¶
func IsPrintableAsciiString ¶
func ParseNamePattern2 ¶
name## name##9#
func PrettyFloat ¶
func RemoveUtf8Strings ¶
func Split ¶
func Split(a, b SSortedStrings) (aNoB SSortedStrings, aAndB SSortedStrings, bNoA SSortedStrings)
func SplitByQuotation ¶
func UTF82GB18030 ¶
Types ¶
type SSortedStrings ¶
type SSortedStrings []string
func Append ¶
func Append(ss SSortedStrings, ele ...string) SSortedStrings
func Intersect ¶
func Intersect(a, b SSortedStrings) SSortedStrings
func Merge ¶
func Merge(a, b SSortedStrings) SSortedStrings
func NewSortedStrings ¶
func NewSortedStrings(strs []string) SSortedStrings
func (SSortedStrings) Append ¶
func (ss SSortedStrings) Append(ele ...string) SSortedStrings
func (SSortedStrings) Contains ¶
func (ss SSortedStrings) Contains(needle string) bool
func (SSortedStrings) ContainsAll ¶
func (ss SSortedStrings) ContainsAll(needles ...string) bool
func (SSortedStrings) ContainsAny ¶
func (ss SSortedStrings) ContainsAny(needles ...string) bool
func (SSortedStrings) Remove ¶
func (ss SSortedStrings) Remove(ele ...string) SSortedStrings
Click to show internal directories.
Click to hide internal directories.