Documentation
¶
Overview ¶
Package bytes implements functions for the manipulation of byte slices. It is analogous to the facilities of the strings package.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetPriority ¶
func SetPriority(value int)
SetPriority sets the output priority for the logging.
func TrimRightNul ¶
TrimRightNul trim \x00 character at the end
Example ¶
package main import ( "fmt" "gopkg.in/goyy/goyy.v0/util/bytes" ) func main() { a := [10]byte{1, 2, 3} src := a[:] fmt.Printf("%q\n", src) fmt.Printf("%q\n", bytes.TrimRightNul(src)) }
Output: "\x01\x02\x03\x00\x00\x00\x00\x00\x00\x00" "\x01\x02\x03"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.