v5.10.1+incompatible Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2019 License: MIT, MIT, MIT Imports: 9 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


type Collection

type Collection struct {
	// contains filtered or unexported fields

A Collection is an extensible set of assets.

func NewCollection

func NewCollection() *Collection

NewCollection returns new instance of a Collection.

func (*Collection) Extend

func (a *Collection) Extend(b http.FileSystem)

Extend collection with given set of assets

func (*Collection) Open

func (a *Collection) Open(path string) (http.File, error)

Open return file for for given path

type Dir

type Dir struct {
	// contains filtered or unexported fields

Dir is an opened dir instance.

func (*Dir) Readdir

func (d *Dir) Readdir(count int) ([]os.FileInfo, error)

func (*Dir) Seek

func (d *Dir) Seek(offset int64, whence int) (int64, error)

type DirInfo

type DirInfo struct {
	// contains filtered or unexported fields

DirInfo is a static definition of a directory.

func (*DirInfo) Close

func (d *DirInfo) Close() error

func (*DirInfo) IsDir

func (d *DirInfo) IsDir() bool

func (*DirInfo) ModTime

func (d *DirInfo) ModTime() time.Time

func (*DirInfo) Mode

func (d *DirInfo) Mode() os.FileMode

func (*DirInfo) Name

func (d *DirInfo) Name() string

func (*DirInfo) Read

func (d *DirInfo) Read([]byte) (int, error)

func (*DirInfo) Size

func (d *DirInfo) Size() int64

func (*DirInfo) Stat

func (d *DirInfo) Stat() (os.FileInfo, error)

func (*DirInfo) Sys

func (d *DirInfo) Sys() interface{}

type PathInfo

type PathInfo struct {
	Name string

PathInfo includes the file descriptor of a path.

func ListContents

func ListContents(fs http.FileSystem, path string) ([]PathInfo, error)

ListContents returns all paths inside the given filesystem; sub-directories are also expanded.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL