Documentation ¶
Overview ¶
Package filesystem provides an abstraction for a file system. It can be extended to suppot multiple backends, such as remote backends.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPFS ¶
func NewHTTPFS(source FS) http.FileSystem
NewHTTPFS creates a net/http compatible filesystem from the source
Types ¶
type FS ¶
FS is an abstraction for a file system
func NewBasePathFS ¶ added in v0.9.1
NewBasePathFS returns a file system based on the given path
func NewMemMapFS ¶ added in v0.9.1
func NewMemMapFS() FS
NewMemMapFS creates a memory-based file system
Click to show internal directories.
Click to hide internal directories.