Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AssetTypes *assetTypes = &assetTypes{
JS: "javascript",
CSS: "css",
FAVICON: "favicon",
HTML: "html",
}
AssetTypes is an enum for the asset type keys
Functions ¶
This section is empty.
Types ¶
type Asset ¶
Asset describes an asset type and its path
func (*Asset) AsCHexData ¶
AsCHexData processes the asset data so it may be used by C
type AssetBundle ¶
type AssetBundle struct {
// contains filtered or unexported fields
}
AssetBundle is a collection of Assets
func NewAssetBundle ¶
func NewAssetBundle(pathToHTML string) (*AssetBundle, error)
NewAssetBundle creates a new AssetBundle struct containing the given html and all the assets referenced by it
func (*AssetBundle) ConvertToAssetDB ¶
func (a *AssetBundle) ConvertToAssetDB() (*assetdb.AssetDB, error)
ConvertToAssetDB returns an assetdb.AssetDB initialized with the items in the AssetBundle
func (*AssetBundle) WriteToCFile ¶
func (a *AssetBundle) WriteToCFile(targetDir string) (string, error)
WriteToCFile dumps all the assets to C files in the given directory
Click to show internal directories.
Click to hide internal directories.