bindata

package
v0.6.28 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: AGPL-3.0 Imports: 16 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Asset = func(name string) ([]byte, error) {
		return nil, ErrUnsupported
	}

	AssetDir = func(name string) ([]string, error) {
		return nil, ErrUnsupported
	}

	AssetInfo = func(name string) (os.FileInfo, error) {
		return nil, ErrUnsupported
	}

	// PathAliases 后台模板文件路径别名分组
	//
	//	一般用于登记模块中的路径别名分组
	PathAliases = httpserver.Backend.Template.PathAliases
)
View Source
var ErrUnsupported = errors.New(`unsupported bindata`)
View Source
var StaticOptions = &middleware.StaticOptions{
	Root:     "",
	Path:     "",
	Fallback: []string{},
	MaxAge:   bootconfig.HTTPCacheMaxAge,
}

StaticOptions 后台static中间件选项

Functions

func Initialize

func Initialize()

Initialize 后台模板等素材初始化配置

func NewStaticAssetFS

func NewStaticAssetFS(prefix string, afs *assetfs.AssetFS) 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