emfs

package
v0.0.0-...-2c16882 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 2 Imported by: 1

README


embed.FS 内部静态资源集成

//resource 静态资源
//libs 库资源

//go:embed resource
var resource embed.FS

//go:embed libs
var libs embed.FS

func main() {
	inits.Init(&libs, &resource)
	...
	...
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLibs

func GetLibs(fileName string) ([]byte, error)

func GetLibsFS

func GetLibsFS() *embed.FS

func GetResources

func GetResources(fileName string) ([]byte, error)

func GetResourcesFS

func GetResourcesFS() *embed.FS

func SetLibsFS

func SetLibsFS(lib *embed.FS)

func SetResourcesFS

func SetResourcesFS(resource *embed.FS)

Types

This section is empty.

Jump to

Keyboard shortcuts

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