Documentation
¶
Index ¶
- func CheckWriteFile(name string, data []byte, perm os.FileMode, createDir bool, ...) (err error)
- func Hide(path string) error
- type MentoryFile
- func (mf *MentoryFile) Bytes() []byte
- func (mf *MentoryFile) ChangeName(name string)
- func (mf *MentoryFile) Close() error
- func (mf *MentoryFile) IsDir() bool
- func (mf *MentoryFile) ModTime() time.Time
- func (mf *MentoryFile) Mode() os.FileMode
- func (mf *MentoryFile) Name() string
- func (mf *MentoryFile) Read(buffer []byte) (int, error)
- func (mf *MentoryFile) Seek(offset int64, whence int) (int64, error)
- func (mf *MentoryFile) Size() int64
- func (mf *MentoryFile) Stat() (fs.FileInfo, error)
- func (mf *MentoryFile) Sys() any
- func (mf *MentoryFile) Write(buffer []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckWriteFile ¶ added in v0.1.4
Types ¶
type MentoryFile ¶ added in v0.1.8
type MentoryFile struct {
// contains filtered or unexported fields
}
func NewMentoryFile ¶ added in v0.1.8
func NewMentoryFile(name string) *MentoryFile
func WriteMentoryFile ¶ added in v0.1.8
func WriteMentoryFile(name string, buffer []byte) *MentoryFile
func (*MentoryFile) Bytes ¶ added in v0.1.8
func (mf *MentoryFile) Bytes() []byte
func (*MentoryFile) ChangeName ¶ added in v0.1.8
func (mf *MentoryFile) ChangeName(name string)
func (*MentoryFile) Close ¶ added in v0.1.8
func (mf *MentoryFile) Close() error
func (*MentoryFile) IsDir ¶ added in v0.1.8
func (mf *MentoryFile) IsDir() bool
func (*MentoryFile) ModTime ¶ added in v0.1.8
func (mf *MentoryFile) ModTime() time.Time
func (*MentoryFile) Mode ¶ added in v0.1.8
func (mf *MentoryFile) Mode() os.FileMode
func (*MentoryFile) Name ¶ added in v0.1.8
func (mf *MentoryFile) Name() string
func (*MentoryFile) Seek ¶ added in v0.1.8
func (mf *MentoryFile) Seek(offset int64, whence int) (int64, error)
func (*MentoryFile) Size ¶ added in v0.1.8
func (mf *MentoryFile) Size() int64
func (*MentoryFile) Sys ¶ added in v0.1.8
func (mf *MentoryFile) Sys() any
Click to show internal directories.
Click to hide internal directories.