Documentation
¶
Index ¶
- func Create(path string) (*os.File, error)
- func CreateWithMode(path string, mode os.FileMode) (*os.File, error)
- func Open(path string) (*os.File, error)
- func OpenFile(path string, flag int, mode os.FileMode) (*os.File, error)
- func ReadDirUnder(root string, segments ...string) ([]os.DirEntry, string, error)
- func ReadFile(path string) ([]byte, error)
- func ReadFileUnder(root string, segments ...string) ([]byte, string, error)
- func ResolveUnder(root string, segments ...string) (string, error)
- func StatUnder(root string, segments ...string) (os.FileInfo, string, error)
- type BundleRoot
- func (r BundleRoot) Abs() string
- func (r BundleRoot) Create(segments ...string) (*os.File, string, error)
- func (r BundleRoot) Open(segments ...string) (*os.File, string, error)
- func (r BundleRoot) OpenFile(flag int, mode os.FileMode, segments ...string) (*os.File, string, error)
- func (r BundleRoot) ReadDir(segments ...string) ([]os.DirEntry, string, error)
- func (r BundleRoot) ReadFile(segments ...string) ([]byte, string, error)
- func (r BundleRoot) Resolve(segments ...string) (string, error)
- func (r BundleRoot) Stat(segments ...string) (os.FileInfo, string, error)
- func (r BundleRoot) WalkDir(fn fs.WalkDirFunc, segments ...string) error
- func (r BundleRoot) WalkFiles(fn func(path string, d os.DirEntry) error, segments ...string) error
- type PreparedRoot
- func (r PreparedRoot) Abs() string
- func (r PreparedRoot) Create(segments ...string) (*os.File, string, error)
- func (r PreparedRoot) Open(segments ...string) (*os.File, string, error)
- func (r PreparedRoot) OpenFile(flag int, mode os.FileMode, segments ...string) (*os.File, string, error)
- func (r PreparedRoot) ReadDir(segments ...string) ([]os.DirEntry, string, error)
- func (r PreparedRoot) ReadFile(segments ...string) ([]byte, string, error)
- func (r PreparedRoot) Resolve(segments ...string) (string, error)
- func (r PreparedRoot) Stat(segments ...string) (os.FileInfo, string, error)
- func (r PreparedRoot) WalkDir(fn fs.WalkDirFunc, segments ...string) error
- func (r PreparedRoot) WalkFiles(fn func(path string, d os.DirEntry) error, segments ...string) error
- type Root
- func (r Root) Abs() string
- func (r Root) Create(segments ...string) (*os.File, string, error)
- func (r Root) Open(segments ...string) (*os.File, string, error)
- func (r Root) OpenFile(flag int, mode os.FileMode, segments ...string) (*os.File, string, error)
- func (r Root) ReadDir(segments ...string) ([]os.DirEntry, string, error)
- func (r Root) ReadFile(segments ...string) ([]byte, string, error)
- func (r Root) Resolve(segments ...string) (string, error)
- func (r Root) Stat(segments ...string) (os.FileInfo, string, error)
- func (r Root) WalkDir(fn fs.WalkDirFunc, segments ...string) error
- func (r Root) WalkDirWithContext(ctx context.Context, fn fs.WalkDirFunc, segments ...string) error
- func (r Root) WalkFiles(fn func(path string, d os.DirEntry) error, segments ...string) error
- func (r Root) WalkFilesWithContext(ctx context.Context, fn func(path string, d os.DirEntry) error, ...) error
- type SiteRoot
- func (r SiteRoot) Abs() string
- func (r SiteRoot) Create(segments ...string) (*os.File, string, error)
- func (r SiteRoot) Open(segments ...string) (*os.File, string, error)
- func (r SiteRoot) OpenFile(flag int, mode os.FileMode, segments ...string) (*os.File, string, error)
- func (r SiteRoot) ReadDir(segments ...string) ([]os.DirEntry, string, error)
- func (r SiteRoot) ReadFile(segments ...string) ([]byte, string, error)
- func (r SiteRoot) Resolve(segments ...string) (string, error)
- func (r SiteRoot) Stat(segments ...string) (os.FileInfo, string, error)
- func (r SiteRoot) WalkDir(fn fs.WalkDirFunc, segments ...string) error
- func (r SiteRoot) WalkFiles(fn func(path string, d os.DirEntry) error, segments ...string) error
- type StateRoot
- func (r StateRoot) Abs() string
- func (r StateRoot) Create(segments ...string) (*os.File, string, error)
- func (r StateRoot) Open(segments ...string) (*os.File, string, error)
- func (r StateRoot) OpenFile(flag int, mode os.FileMode, segments ...string) (*os.File, string, error)
- func (r StateRoot) ReadDir(segments ...string) ([]os.DirEntry, string, error)
- func (r StateRoot) ReadFile(segments ...string) ([]byte, string, error)
- func (r StateRoot) Resolve(segments ...string) (string, error)
- func (r StateRoot) Stat(segments ...string) (os.FileInfo, string, error)
- func (r StateRoot) WalkDir(fn fs.WalkDirFunc, segments ...string) error
- func (r StateRoot) WalkFiles(fn func(path string, d os.DirEntry) error, segments ...string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadDirUnder ¶
Types ¶
type BundleRoot ¶
type BundleRoot struct {
// contains filtered or unexported fields
}
func NewBundleRoot ¶
func NewBundleRoot(path string) (BundleRoot, error)
func (BundleRoot) Abs ¶
func (r BundleRoot) Abs() string
func (BundleRoot) ReadFile ¶
func (r BundleRoot) ReadFile(segments ...string) ([]byte, string, error)
func (BundleRoot) WalkDir ¶
func (r BundleRoot) WalkDir(fn fs.WalkDirFunc, segments ...string) error
type PreparedRoot ¶
type PreparedRoot struct {
// contains filtered or unexported fields
}
func NewPreparedRoot ¶
func NewPreparedRoot(path string) (PreparedRoot, error)
func (PreparedRoot) Abs ¶
func (r PreparedRoot) Abs() string
func (PreparedRoot) ReadFile ¶
func (r PreparedRoot) ReadFile(segments ...string) ([]byte, string, error)
func (PreparedRoot) WalkDir ¶
func (r PreparedRoot) WalkDir(fn fs.WalkDirFunc, segments ...string) error
type Root ¶
type Root struct {
// contains filtered or unexported fields
}
func (Root) WalkDirWithContext ¶
type SiteRoot ¶
type SiteRoot struct {
// contains filtered or unexported fields
}
func NewSiteRoot ¶
Click to show internal directories.
Click to hide internal directories.