embedKit

package
v3.0.912 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Sub 获取一个embed.FS实例的子embed.FS实例.
	Sub func(fsys fs.FS, dir string) (fs.FS, error) = fs.Sub
)

Functions

func NewSubHttpFileSystem added in v3.0.903

func NewSubHttpFileSystem(embedFs embed.FS, dir string) (httpFs http.FileSystem, err error)

NewSubHttpFileSystem

@param dir 子目录

func ToHttpFileSystem added in v3.0.61

func ToHttpFileSystem(embedFs embed.FS) http.FileSystem

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL