Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JoinIfFirstNotEmpty ¶
Types ¶
type SearcherFile ¶
func (SearcherFile) Close ¶
func (sf SearcherFile) Close() error
Close implements the http.File interface
func (SearcherFile) Read ¶
func (sf SearcherFile) Read(p []byte) (n int, err error)
Read implements the http.File interface
func (SearcherFile) Readdir ¶
func (sf SearcherFile) Readdir(count int) (infos []fs.FileInfo, err error)
Readdir implements the http.File interface
type SearcherFilesystem ¶
type SearcherFilesystem []http.FileSystem
SearcherFilesystem is a http.Filesystem that looks through multiple http. Filesystems for a file returning the first one found
func NewLocalAndOtherSearcherFilesystem ¶
func NewLocalAndOtherSearcherFilesystem(basePath string, other ...http.FileSystem) SearcherFilesystem
NewLocalAndOtherSearcherFilesystem creates a SearcherFilesystem from a local basePath ( if not empty) and other http.FileSystems. The local fs will be the first one.
Click to show internal directories.
Click to hide internal directories.