func From...([]byte, sometype) ([]byte, error)

first parameter is the current byte slice that should be appended to.
second parameter is the type to be converted
first return value is the byte slice with the data appended to it
second return value is error

func To...([]byte) (sometype, []byte, error)

parameter is a byte slice to parse the front of
first return value is the type as parsed from the byte slice
second return value is the remaining byte slice
third return value is error

Imports 2 package(s)


Test imports 1 package(s)