Documentation ¶
Index ¶
- Constants
- func AppendHTMLEscape(dst []byte, s string) []byte
- func AppendHTMLEscapeBytes(dst, s []byte) []byte
- func AppendHTTPDate(dst []byte, date time.Time) []byte
- func AppendIPv4(dst []byte, ip net.IP) []byte
- func AppendQuotedArg(dst, src []byte) []byte
- func AppendQuotedPath(dst, src []byte) []byte
- func AppendUint(dst []byte, n int) []byte
- func AppendUnquotedArg(dst, src []byte) []byte
- func DecodeArgAppend(dst, src []byte) []byte
- func DecodeArgAppendNoPlus(dst, src []byte) []byte
- func LowercaseBytes(b []byte)
- func ParseHTTPDate(date []byte) (time.Time, error)
- func ParseIPv4(dst net.IP, ipStr []byte) (net.IP, error)
- func ParseUfloat(buf []byte) (float64, error)
- func ParseUint(buf []byte) (int, error)
- func ParseUintBuf(b []byte) (int, int, error)
- func ReadHexInt(r *bufio.Reader) (int, error)
- func ToString(b []byte) string
- func Tobytes(s string) (b []byte)
- func WriteHexInt(w *bufio.Writer, n int) error
Constants ¶
const Hex2intTable = "" /* 1002-byte string literal not displayed */
const QuotedArgShouldEscapeTable = "" /* 1024-byte string literal not displayed */
const QuotedPathShouldEscapeTable = "" /* 1024-byte string literal not displayed */
const ToLowerTable = "" /* 729-byte string literal not displayed */
const ToUpperTable = "" /* 729-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func AppendHTMLEscape ¶
AppendHTMLEscape appends html-escaped s to dst and returns the extended dst.
func AppendHTMLEscapeBytes ¶
AppendHTMLEscapeBytes appends html-escaped s to dst and returns the extended dst.
func AppendHTTPDate ¶
AppendHTTPDate appends HTTP-compliant (RFC1123) representation of date to dst and returns the extended dst.
func AppendIPv4 ¶
AppendIPv4 appends string representation of the given ip v4 to dst and returns the extended dst.
func AppendQuotedArg ¶
AppendQuotedArg appends url-encoded src to dst and returns appended dst.
func AppendQuotedPath ¶
func AppendUint ¶
AppendUint appends n to dst and returns the extended dst.
func AppendUnquotedArg ¶
AppendUnquotedArg appends url-decoded src to dst and returns appended dst.
dst may point to src. In this case src will be overwritten.
func DecodeArgAppend ¶
func DecodeArgAppendNoPlus ¶
DecodeArgAppendNoPlus is almost identical to DecodeArgAppend, but it doesn't substitute '+' with ' '.
The function is copy-pasted from DecodeArgAppend due to the performance reasons only.
func LowercaseBytes ¶
func LowercaseBytes(b []byte)
func ParseHTTPDate ¶
ParseHTTPDate parses HTTP-compliant (RFC1123) date.
func ParseUfloat ¶
ParseUfloat parses unsigned float from buf.
func ToString ¶
b2s converts byte slice to a string without memory allocation. See https://groups.google.com/forum/#!msg/Golang-Nuts/ENgbUzYvCuU/90yGx7GUAgAJ .
Note it may break if string and/or slice header will change in the future go versions.
Types ¶
This section is empty.