Versions in this module Expand all Collapse all v0 v0.17.19 May 19, 2023 Changes in this version + func ContainsNonBMPCodePoint(text string) bool + func ContainsNonBMPCodePointUTF16(text []uint16) bool + func DecodeWTF8Rune(s string) (rune, int) + func EncodeStringAsPercentEscapedDataURL(mimeType string, text string) (string, bool) + func EscapeClosingTag(text string, slashTag string) string + func HashCombine(seed uint32, hash uint32) uint32 + func HashCombineString(seed uint32, text string) uint32 + func IsInsideNodeModules(path string) bool + func MimeTypeByExtension(ext string) string + func PrettyPrintedStack() string + func QuoteForJSON(text string, asciiOnly bool) []byte + func QuoteSingle(text string, asciiOnly bool) []byte + func StringArrayToQuotedCommaSeparatedString(a []string) string + func StringArraysEqual(a []string, b []string) bool + func StringSlicesAreEqual(a []string, b []string) bool + func StringToUTF16(text string) []uint16 + func UTF16EqualsString(text []uint16, str string) bool + func UTF16EqualsUTF16(a []uint16, b []uint16) bool + func UTF16ToString(text []uint16) string + func UTF16ToStringWithValidation(text []uint16) (string, uint16, bool) + type BitSet struct + func NewBitSet(bitCount uint) BitSet + func (bs BitSet) Equals(other BitSet) bool + func (bs BitSet) HasBit(bit uint) bool + func (bs BitSet) SetBit(bit uint) + func (bs BitSet) String() string + type Joiner struct + func (j *Joiner) AddBytes(data []byte) + func (j *Joiner) AddString(data string) + func (j *Joiner) Contains(s string, b []byte) bool + func (j *Joiner) Done() []byte + func (j *Joiner) EnsureNewlineAtEnd() + func (j *Joiner) LastByte() byte + func (j *Joiner) Length() uint32 + type Serializer struct + func MakeSerializer(count int) Serializer + func (s *Serializer) Enter(i int) + func (s *Serializer) Leave(i int) + type ThreadSafeWaitGroup struct + func MakeThreadSafeWaitGroup() *ThreadSafeWaitGroup + func (wg *ThreadSafeWaitGroup) Add(delta int32) + func (wg *ThreadSafeWaitGroup) Done() + func (wg *ThreadSafeWaitGroup) Wait() + type Timer struct + func (t *Timer) Begin(name string) + func (t *Timer) End(name string) + func (t *Timer) Fork() *Timer + func (t *Timer) Join(other *Timer) + func (t *Timer) Log(log logger.Log) + type TypoDetector struct + func MakeTypoDetector(valid []string) TypoDetector + func (detector TypoDetector) MaybeCorrectTypo(typo string) (string, bool)