Documentation ¶
Overview ¶
打包资源文件
Index ¶
- Variables
- type Asset
- type AssetFS
- type AssetFile
- type AssetFileInfo
- type GoAssets
- func (this *GoAssets) AddAsset(path string, modTime time.Time, data string)
- func (this *GoAssets) AddAssetPath(assetPath string)
- func (this *GoAssets) AddExt(ext string)
- func (this *GoAssets) Build(root, packageName, savePath string) error
- func (this *GoAssets) DecodeAsset(assetData string) ([]byte, error)
- func (this *GoAssets) Exists() bool
- func (this *GoAssets) GetAsset(name string) ([]byte, error)
- func (this *GoAssets) GetAssetPaths() []string
- func (this *GoAssets) GetAssets() []Asset
- func (this *GoAssets) ReadAsset(name string) (Asset, error)
- func (this *GoAssets) RemoveAssetPath(assetPath string)
- func (this *GoAssets) RemoveExt(ext string)
- func (this *GoAssets) SetAssetPaths(assetPaths []string)
- func (this *GoAssets) SetAssets(assets []Asset)
- func (this *GoAssets) SetExts(exts []string)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Assets = NewGoAssets()
)
Functions ¶
This section is empty.
Types ¶
type Asset ¶
func (*Asset) GetRawData ¶
type AssetFS ¶
type AssetFS struct {
// contains filtered or unexported fields
}
func AssetsDirAllowedExts ¶
func AssetsDirBlockedExts ¶
func NewAssetFS ¶
type AssetFileInfo ¶
type AssetFileInfo struct {
// contains filtered or unexported fields
}
func (*AssetFileInfo) IsDir ¶
func (this *AssetFileInfo) IsDir() bool
func (*AssetFileInfo) ModTime ¶
func (this *AssetFileInfo) ModTime() time.Time
func (*AssetFileInfo) Mode ¶
func (this *AssetFileInfo) Mode() os.FileMode
func (*AssetFileInfo) Name ¶
func (this *AssetFileInfo) Name() string
func (*AssetFileInfo) Size ¶
func (this *AssetFileInfo) Size() int64
func (*AssetFileInfo) Sys ¶
func (this *AssetFileInfo) Sys() interface{}
type GoAssets ¶
type GoAssets struct {
// contains filtered or unexported fields
}
func NewGoAssets ¶
func NewGoAssets() *GoAssets
func (*GoAssets) AddAssetPath ¶
func (*GoAssets) GetAssetPaths ¶
func (*GoAssets) RemoveAssetPath ¶
func (*GoAssets) SetAssetPaths ¶
Click to show internal directories.
Click to hide internal directories.