Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultEmbedConfig = EmbedConfig{ Index: "index.html", FilePath: func(c echo.Context) (string, error) { return c.Param(`*`), nil }, }
Functions ¶
func EmbedFile ¶
func EmbedFile(fs FileSystems, configs ...EmbedConfig) func(c echo.Context) error
EmbedFile e.Get(`/*`, EmbedFile(customFS))
Types ¶
type EmbedConfig ¶
type FileSystems ¶
func NewFileSystems ¶
func NewFileSystems() FileSystems
func (FileSystems) IsEmpty ¶
func (f FileSystems) IsEmpty() bool
func (*FileSystems) Register ¶
func (f *FileSystems) Register(fileSystem fs.FS)
func (FileSystems) Size ¶
func (f FileSystems) Size() int
Click to show internal directories.
Click to hide internal directories.