runes

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ArrayClose     = ']'
	ArrayOpen      = '['
	ArraySeparator = ','
	Colon          = ':' // keywords in a signature are separated by a colon
	Dash           = '-' // values in a sequence are prefixed by a dash ( and whitespace )
	Eof            = -1
	Escape         = '\\'
	Hash           = '#'  // comment marker
	HTab           = '\t' // invalid outside of strings or comments.
	KeyValue       = '\r' // in comment blocks, replaces both the  key and the value.
	Newline        = '\n'
	NextTerm       = '\f' // form feed is used to separate comment entries
	QuoteDouble    = '"'  // double quotes
	QuotePipe      = '|'  // a nod towards yaml compatibility
	QuoteRaw       = '`'  // back tick
	QuoteSingle    = '\'' // single quotes
	Redirect       = '<'  // for closing tags
	Space          = ' '
	Underscore     = '_' // valid in words between colons
)

Variables

This section is empty.

Functions

func IsWhitespace

func IsWhitespace(q rune) (ret bool)

func WriteRune

func WriteRune(w io.Writer, q rune) (n int, err error)

func WriteRunes

func WriteRunes(w RuneWriter, qs ...rune)

func WriteString

func WriteString(w RuneWriter, str string) (ret int, _ error)

Types

type RuneWriter

type RuneWriter interface {
	WriteRune(q rune) (n int, err error)
}

func WriterToRunes

func WriterToRunes(w io.Writer) (ret RuneWriter)

turn a writer into a rune writer first attempts to cast, otherwise builds an adapter for the output

Jump to

Keyboard shortcuts

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