utils

package
v0.0.0-...-f9022d8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2014 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NickRegex = regexp.MustCompile("[a-zA-Z\\x5B-\\x60\\x7B-\\x7D[\\]\\\\`_^{|}][a-zA-Z0-9\\x5B-\\x60\\x7B-\\x7D[\\]\\\\`_^{|}\\-]*")

Functions

func ClassMap

func ClassMap(node *html.Node) map[string]bool

func ColorToANSI

func ColorToANSI(s string) string

func IndexFold

func IndexFold(s, sub string, offset int) (int, int)

func MatchCase

func MatchCase(s, src string) string

func NodeAttr

func NodeAttr(node *html.Node, attr string) string

func NodeString

func NodeString(node *html.Node) string

func PrefixMap

func PrefixMap(node *html.Node) map[string]string

Call prefixMap on the document element

func ReplaceAllFold

func ReplaceAllFold(s, sub, repl string) string

returns "" if there was no replacement

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL