Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bundle ¶
type Bundle interface { Open(resourcePath string) (fs.File, error) Walk(walkFn fs.WalkDirFunc) error AbsPath(resourcePath string) string RelativePath(absPath string) string Get(resourcePath string) (Resource, error) }
Bundle A bundle of resources
type Resource ¶
type Resource interface { Path() string Bundle() Bundle Stat() os.FileInfo Open() (fs.File, error) Read() ([]byte, error) Copy(w io.Writer) (int64, error) Write(w http.ResponseWriter, urlPath string) error AsString() (string, error) Size() int64 ContentType() string }
Resource An individual resource
Click to show internal directories.
Click to hide internal directories.