Documentation ¶
Index ¶
- func NewFile(file string) file.File
- type BasicFile
- func (f *BasicFile) Available() bool
- func (f *BasicFile) Decode(enctype encodeenum.Encoding) []byte
- func (f *BasicFile) Delete() bool
- func (f *BasicFile) DeleteAll() bool
- func (f *BasicFile) Dir() bool
- func (f *BasicFile) Encode(enctype encodeenum.Encoding) string
- func (f *BasicFile) HRByteCount(si bool) string
- func (f *BasicFile) Hash(hasher hash.Hasher, rebuild bool) []byte
- func (f *BasicFile) Name() string
- func (f *BasicFile) Path() string
- func (f *BasicFile) PathOnly() string
- func (f *BasicFile) SetMeta(m file.Meta)
- func (f BasicFile) Size() int64
- func (f *BasicFile) Type() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BasicFile ¶
type BasicFile struct {
// contains filtered or unexported fields
}
BasicFile struct
func (*BasicFile) Decode ¶
func (f *BasicFile) Decode(enctype encodeenum.Encoding) []byte
Decode file data
func (*BasicFile) Encode ¶
func (f *BasicFile) Encode(enctype encodeenum.Encoding) string
Encode file data
func (*BasicFile) HRByteCount ¶
HRByteCount return a string to represent a size
Click to show internal directories.
Click to hide internal directories.