assets

package
v0.0.0-...-329202b Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearAssetCache

func ClearAssetCache(paths []string) bool

ClearAssetCache is a function *

  • @Description: 清除资源缓存
  • @param paths
  • @return bool

func DefaultBinFontList

func DefaultBinFontList() []string

*

  • @Description: 内置默认资源
  • @return []string

func DefaultBinImageList

func DefaultBinImageList() []string

*

  • @Description: 内置默认资源
  • @return []string

func GetAssetCache

func GetAssetCache(path string) (ret []byte, erro error)

GetAssetCache is a function *

  • @Description: 获取缓存资源
  • @param path
  • @return []byte
  • @return error

func HasAssetCache

func HasAssetCache(path string) bool

HasAssetCache is a function *

  • @Description: 资源是否缓存
  • @param path
  • @return bool

func SetAssetCache

func SetAssetCache(path string, content []byte, force bool) bool

SetAssetCache is a function *

  • @Description: 设置缓存资源
  • @param path
  • @return error

Types

type AssetData

type AssetData struct {
	// 路径
	Path string
	// 内容
	Content []byte
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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