Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func File ¶
func File(path string, opts ...FileOption) (io.ReadCloser, error)
Types ¶
type FileOption ¶
type FileOption func(f *file)
func WithHash ¶
func WithHash(h hash.Hash) FileOption
func WithOpenHash ¶
func WithOpenHash(oh hash.Hash) FileOption
type HashBuffer ¶
func NewHashBuffer ¶
func NewHashBuffer(h hash.Hash, buffer *bytes.Buffer) *HashBuffer
func (*HashBuffer) Bytes ¶
func (hb *HashBuffer) Bytes() []byte
func (*HashBuffer) BytesRead ¶
func (hb *HashBuffer) BytesRead() int
func (*HashBuffer) Hex ¶
func (hb *HashBuffer) Hex() string
func (*HashBuffer) Reset ¶
func (hb *HashBuffer) Reset()
Click to show internal directories.
Click to hide internal directories.