Documentation
¶
Index ¶
- func Compress(src io.Reader, dst io.Writer) error
- func Decompress(src io.Reader, dst io.Writer) error
- func Elapsed(now time.Time, logger logger.Logger, msg string)
- func Hash(s string) uint64
- func LCP(a, b string) int
- func Magic(input string) uint64
- func Pow(x, n int) int
- func TMarshal(data thrift.TStruct) ([]byte, error)
- func TUnmarshal(data []byte, v thrift.TStruct) error
- type ErrorReader
- type ErrorWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrorReader ¶
type ErrorReader struct {
// contains filtered or unexported fields
}
func NewErrorReader ¶
func NewErrorReader(r io.Reader) *ErrorReader
func (*ErrorReader) Error ¶
func (r *ErrorReader) Error() error
type ErrorWriter ¶
type ErrorWriter struct {
// contains filtered or unexported fields
}
func NewErrorWriter ¶
func NewErrorWriter(buf *bytes.Buffer) *ErrorWriter
func (*ErrorWriter) Error ¶
func (w *ErrorWriter) Error() error
Click to show internal directories.
Click to hide internal directories.