Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
func (Config) MustPreload ¶
func (c Config) MustPreload() FileSystem
func (Config) New ¶
func (c Config) New() FileSystem
func (Config) Preload ¶
func (c Config) Preload() (FileSystem, error)
type FileSystem ¶
type FileSystem interface { http.FileSystem Preload() (FileSystem, error) ReadFile(path string) ([]byte, error) }
func Override ¶
func Override(path string, fs FileSystem) (FileSystem, error)
Override a FileSystem with a physical path - use this in development to mask the baked-in FileSystem with updatable versions stored locally.
Click to show internal directories.
Click to hide internal directories.