package
0.0.0-20130121074735-1d03baafba06
Repository: https://github.com/icattlecoder/go.git
Documentation: pkg.go.dev

# Functions

Compare returns an integer comparing two byte slices lexicographically.
Contains returns whether subslice is within b.
Count counts the number of non-overlapping instances of sep in s.
Equal returns a boolean reporting whether a == b.
EqualFold reports whether s and t, interpreted as UTF-8 strings, are equal under Unicode case-folding.
Fields splits the slice s around each instance of one or more consecutive white space characters, returning a slice of subslices of s or an empty list if s contains only white space.
FieldsFunc interprets s as a sequence of UTF-8-encoded Unicode code points.
HasPrefix tests whether the byte slice s begins with prefix.
HasSuffix tests whether the byte slice s ends with suffix.
Index returns the index of the first instance of sep in s, or -1 if sep is not present in s.
IndexAny interprets s as a sequence of UTF-8-encoded Unicode code points.
IndexByte returns the index of the first instance of c in s, or -1 if c is not present in s.
IndexFunc interprets s as a sequence of UTF-8-encoded Unicode code points.
IndexRune interprets s as a sequence of UTF-8-encoded Unicode code points.
Join concatenates the elements of s to create a new byte slice.
LastIndex returns the index of the last instance of sep in s, or -1 if sep is not present in s.
LastIndexAny interprets s as a sequence of UTF-8-encoded Unicode code points.
LastIndexFunc interprets s as a sequence of UTF-8-encoded Unicode code points.
Map returns a copy of the byte slice s with all its characters modified according to the mapping function.
NewBuffer creates and initializes a new Buffer using buf as its initial contents.
NewBufferString creates and initializes a new Buffer using string s as its initial contents.
NewReader returns a new Reader reading from b.
Repeat returns a new byte slice consisting of count copies of b.
Replace returns a copy of the slice s with the first n non-overlapping instances of old replaced by new.
Runes returns a slice of runes (Unicode code points) equivalent to s.
Split slices s into all subslices separated by sep and returns a slice of the subslices between those separators.
SplitAfter slices s into all subslices after each instance of sep and returns a slice of those subslices.
SplitAfterN slices s into subslices after each instance of sep and returns a slice of those subslices.
SplitN slices s into subslices separated by sep and returns a slice of the subslices between those separators.
Title returns a copy of s with all Unicode letters that begin words mapped to their title case.
ToLower returns a copy of the byte slice s with all Unicode letters mapped to their lower case.
ToLowerSpecial returns a copy of the byte slice s with all Unicode letters mapped to their lower case, giving priority to the special casing rules.
ToTitle returns a copy of the byte slice s with all Unicode letters mapped to their title case.
ToTitleSpecial returns a copy of the byte slice s with all Unicode letters mapped to their title case, giving priority to the special casing rules.
ToUpper returns a copy of the byte slice s with all Unicode letters mapped to their upper case.
ToUpperSpecial returns a copy of the byte slice s with all Unicode letters mapped to their upper case, giving priority to the special casing rules.
Trim returns a subslice of s by slicing off all leading and trailing UTF-8-encoded Unicode code points contained in cutset.
TrimFunc returns a subslice of s by slicing off all leading and trailing UTF-8-encoded Unicode code points c that satisfy f(c).
TrimLeft returns a subslice of s by slicing off all leading UTF-8-encoded Unicode code points contained in cutset.
TrimLeftFunc returns a subslice of s by slicing off all leading UTF-8-encoded Unicode code points c that satisfy f(c).
TrimRight returns a subslice of s by slicing off all trailing UTF-8-encoded Unicode code points that are contained in cutset.
TrimRightFunc returns a subslice of s by slicing off all trailing UTF-8 encoded Unicode code points c that satisfy f(c).
TrimSpace returns a subslice of s by slicing off all leading and trailing white space, as defined by Unicode.

# Constants

MinRead is the minimum slice size passed to a Read call by Buffer.ReadFrom.

# Variables

ErrTooLarge is passed to panic if memory cannot be allocated to store data in a buffer.

# Structs

A Buffer is a variable-sized buffer of bytes with Read and Write methods.
A Reader implements the io.Reader, io.ReaderAt, io.WriterTo, io.Seeker, io.ByteScanner, and io.RuneScanner interfaces by reading from a byte slice.