Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LabctlFileServer ¶
Types ¶
type ReplaceText ¶ added in v0.0.12
func (ReplaceText) Close ¶ added in v0.0.12
func (r ReplaceText) Close() error
func (ReplaceText) Readdir ¶ added in v0.0.12
func (r ReplaceText) Readdir(count int) ([]fs.FileInfo, error)
type SPAFileSystem ¶
type SPAFileSystem struct {
// contains filtered or unexported fields
}
FileSystem custom file system handler
func (SPAFileSystem) Open ¶
func (spafs SPAFileSystem) Open(path string) (http.File, error)
Open file with fallback to index.html https://gist.github.com/hauxe/f2ea1901216177ccf9550a1b8bd59178#file-http_static_correct-go
Click to show internal directories.
Click to hide internal directories.