Documentation ¶
Index ¶
- func DescribeError(description string, err error) error
- func FormatError(err error, format string, args ...interface{}) error
- func Hash(i interface{}) string
- func PackFloatToBytes(val float64) []byte
- func PackFloatToBytesInline(val float64, ret []byte)
- func PackU64ToBytes(val uint64) []byte
- func PackU64ToBytesInline(val uint64, ret []byte)
- func UnpackBytesToFloat(val []byte) float64
- func UnpackBytesToU64(val []byte) uint64
- func WrapError(err error) error
- type GoTextError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DescribeError ¶
func FormatError ¶
func PackFloatToBytes ¶
PackFloatToBytes returns a 8-byte slice containing the byte values of a float64.
func PackFloatToBytesInline ¶
PackFloatToBytesInline fills ret with the byte values of the float64 argument. ret must be at least 8 bytes in size.
func PackU64ToBytes ¶
PackU64ToBytes allocates a return value of appropriate length and fills it with the values of val.
func PackU64ToBytesInline ¶
PackU64ToBytesInline fills ret with the byte values of val. Ret must have length at least 8.
func UnpackBytesToFloat ¶
UnpackBytesToFloat converts a given byte slice into an equivalent float64.
func UnpackBytesToU64 ¶
UnpackBytesToU64 converst a given byte slice into a uint64 value.
Types ¶
type GoTextError ¶
func (*GoTextError) Error ¶
func (g *GoTextError) Error() string
Directories ¶
Path | Synopsis |
---|---|
Package gzipf provides a united interface around gzip and non-gzip files.
|
Package gzipf provides a united interface around gzip and non-gzip files. |
Package jsonf provides convenience functions for saving and loading JSON-encoded values to and from the hard drive.
|
Package jsonf provides convenience functions for saving and loading JSON-encoded values to and from the hard drive. |
Package xstrings is to provide string algorithms which are useful but not included in `strings` package.
|
Package xstrings is to provide string algorithms which are useful but not included in `strings` package. |
Click to show internal directories.
Click to hide internal directories.