Documentation ¶
Index ¶
- func Copy(out io.Writer, in io.Reader)
- func FormatCommas(num int64) string
- func FormatHTTPRange(offset int64, length int64) string
- func HaveReadPermission(path string) bool
- func IsDatabaseFile(path string) bool
- func NormalFile(info os.FileInfo) bool
- func ReadCloserToReader(in io.ReadCloser) io.Reader
- func ReaderToReadCloser(in io.Reader) io.ReadCloser
- func SliceToArr(in []byte) [32]byte
- func WalkFiles(startPath string, fn func(path string, info os.FileInfo))
- type EmptyReadCloser
- type HasherSizer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatCommas ¶
func FormatHTTPRange ¶
func HaveReadPermission ¶
func IsDatabaseFile ¶
func NormalFile ¶
return true if and only if the provided FileInfo represents a completely normal file, and nothing weird like a directory, symlink, pipe, socket, block device, etc
func ReadCloserToReader ¶
func ReadCloserToReader(in io.ReadCloser) io.Reader
do you find it annoying to have to close your readers? this function is for you
func ReaderToReadCloser ¶
func ReaderToReadCloser(in io.Reader) io.ReadCloser
func SliceToArr ¶
Types ¶
type EmptyReadCloser ¶
type EmptyReadCloser struct{}
func (*EmptyReadCloser) Close ¶
func (erc *EmptyReadCloser) Close() error
type HasherSizer ¶
type HasherSizer struct {
// contains filtered or unexported fields
}
func NewMD5HasherSizer ¶
func NewMD5HasherSizer() HasherSizer
func NewSHA256HasherSizer ¶
func NewSHA256HasherSizer() HasherSizer
func (*HasherSizer) Hash ¶
func (hs *HasherSizer) Hash() []byte
func (*HasherSizer) HashAndSize ¶
func (hs *HasherSizer) HashAndSize() ([]byte, int64)
func (*HasherSizer) Size ¶
func (hs *HasherSizer) Size() int64
Click to show internal directories.
Click to hide internal directories.