Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnescapeChar ¶
UnescapeChar returns the unescaped byte(s) for a MySQL backslash escape sequence. Given the byte after the backslash, it returns the replacement byte(s). For most escapes this is a single byte; for \% and \_ both the backslash and the character are preserved.
See https://dev.mysql.com/doc/refman/8.0/en/string-literals.html
\" \' \\ \n \0 \b \Z \r \t ==> escape to one char \% \_ ==> preserve both chars other ==> remove backslash
Types ¶
type IHasher ¶
type IHasher interface {
HashBool(val bool)
HashInt(val int)
HashInt64(val int64)
HashUint64(val uint64)
HashFloat64(val float64)
HashRune(val rune)
HashString(val string)
HashByte(val byte)
HashBytes(val []byte)
Reset()
Sum64() uint64
}
IHasher is internal usage represent cascades/base.Hasher
Click to show internal directories.
Click to hide internal directories.