Versions in this module Expand all Collapse all v1 v1.3.2 Nov 21, 2020 v1.3.1 Nov 21, 2020 Changes in this version + func BytesToReadOnlyString(b []byte) string + func DedentPosition(bs []byte, currentPos, width int) (pos, padding int) + func DedentPositionPadding(bs []byte, currentPos, paddingv, width int) (pos, padding int) + func DoFullUnicodeCaseFolding(v []byte) []byte + func EscapeHTML(v []byte) []byte + func EscapeHTMLByte(b byte) []byte + func FindClosure(bs []byte, opener, closure byte, codeSpan, allowNesting bool) int + func FindEmailIndex(b []byte) int + func FindURLIndex(b []byte) int + func FirstNonSpacePosition(bs []byte) int + func IndentPosition(bs []byte, currentPos, width int) (pos, padding int) + func IndentPositionPadding(bs []byte, currentPos, paddingv, width int) (pos, padding int) + func IndentWidth(bs []byte, currentPos int) (width, pos int) + func IsAlphaNumeric(c byte) bool + func IsBlank(bs []byte) bool + func IsEscapedPunctuation(source []byte, i int) bool + func IsHexDecimal(c byte) bool + func IsNumeric(c byte) bool + func IsPunct(c byte) bool + func IsPunctRune(r rune) bool + func IsSpace(c byte) bool + func IsSpaceRune(r rune) bool + func ReadWhile(source []byte, index [2]int, pred func(byte) bool) (int, bool) + func ReplaceSpaces(source []byte, repl byte) []byte + func ResolveEntityNames(source []byte) []byte + func ResolveNumericReferences(source []byte) []byte + func StringToReadOnlyBytes(s string) (bs []byte) — darwin/amd64, linux/amd64, windows/amd64 + func StringToReadOnlyBytes(s string) []byte — js/wasm + func TabWidth(currentPos int) int + func ToLinkReference(v []byte) string + func ToRune(source []byte, pos int) rune + func ToValidRune(v rune) rune + func TrimLeft(source, b []byte) []byte + func TrimLeftLength(source, s []byte) int + func TrimLeftSpace(source []byte) []byte + func TrimLeftSpaceLength(source []byte) int + func TrimRight(source, b []byte) []byte + func TrimRightLength(source, s []byte) int + func TrimRightSpace(source []byte) []byte + func TrimRightSpaceLength(source []byte) int + func URLEscape(v []byte, resolveReference bool) []byte + func UTF8Len(b byte) int8 + func UnescapePunctuations(source []byte) []byte + func VisualizeSpaces(bs []byte) []byte + type BufWriter interface + Available func() int + Buffered func() int + Flush func() error + WriteByte func(c byte) error + WriteRune func(r rune) (size int, err error) + WriteString func(s string) (int, error) + type BytesFilter interface + Add func([]byte) + Contains func([]byte) bool + Extend func(...[]byte) BytesFilter + func NewBytesFilter(elements ...[]byte) BytesFilter + type CopyOnWriteBuffer struct + func NewCopyOnWriteBuffer(buffer []byte) CopyOnWriteBuffer + func (b *CopyOnWriteBuffer) Append(value []byte) + func (b *CopyOnWriteBuffer) AppendByte(c byte) + func (b *CopyOnWriteBuffer) AppendString(value string) + func (b *CopyOnWriteBuffer) Bytes() []byte + func (b *CopyOnWriteBuffer) IsCopied() bool + func (b *CopyOnWriteBuffer) Write(value []byte) + func (b *CopyOnWriteBuffer) WriteByte(c byte) + func (b *CopyOnWriteBuffer) WriteString(value string) + type HTML5Entity struct + Characters []byte + CodePoints []int + Name string + func LookUpHTML5EntityByName(name string) (*HTML5Entity, bool) + type PrioritizedSlice []PrioritizedValue + func (s PrioritizedSlice) Remove(v interface{}) PrioritizedSlice + func (s PrioritizedSlice) Sort() + type PrioritizedValue struct + Priority int + Value interface{} + func Prioritized(v interface{}, priority int) PrioritizedValue