Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrIndexWordNotFound = &RFC1751Error{"index word not found"} ErrInvalidCheckSum = &RFC1751Error{"invalid check sum"} )
Functions ¶
func DecodeString ¶
Example ¶
s := "RASH BUSH MILK LOOK BAD BRIM" fmt.Println(DecodeString(s))
Output: [204 172 42 237 89 16 86 190] <nil>
func EncodeToString ¶
Example ¶
b := []byte{204, 172, 42, 237, 89, 16, 86, 190}
fmt.Println(EncodeToString(b))
Output: RASH BUSH MILK LOOK BAD BRIM
Types ¶
type RFC1751Error ¶
type RFC1751Error struct {
// contains filtered or unexported fields
}
func (*RFC1751Error) Error ¶
func (err *RFC1751Error) Error() string
Click to show internal directories.
Click to hide internal directories.