Documentation
¶
Overview ¶
Package fs contains an HTTP file system that works with zip contents.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDefaultNamespace ¶
IsDefaultNamespace returns true if the assetNamespace is the default one
func New ¶
func New() (http.FileSystem, error)
New creates a new file system with the default registered zip contents data. It unzips all files and stores them in an in-memory map.
func NewWithNamespace ¶
func NewWithNamespace(assetNamespace string) (http.FileSystem, error)
NewWithNamespace creates a new file system with the registered zip contents data. It unzips all files and stores them in an in-memory map.
func Register ¶
func Register(data string)
Register registers zip contents data, later used to initialize the statik file system.
func RegisterWithNamespace ¶
RegisterWithNamespace registers zip contents data and set asset namespace, later used to initialize the statik file system.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.