diff --git a/v2/internal/html/asset.go b/v2/internal/html/asset.go index 2387c331..0da09dd3 100644 --- a/v2/internal/html/asset.go +++ b/v2/internal/html/asset.go @@ -107,6 +107,7 @@ func (a *Asset) AsCHexData() string { return cdata.String() } +// Dump will output the asset to the terminal func (a *Asset) Dump() { fmt.Printf("{ Type: %s, Path: %s, Data: %+v }\n", a.Type, a.Path, a.Data[:10]) } diff --git a/v2/internal/html/assetbundle.go b/v2/internal/html/assetbundle.go index d3227497..ea5b6985 100644 --- a/v2/internal/html/assetbundle.go +++ b/v2/internal/html/assetbundle.go @@ -191,6 +191,7 @@ func (a *AssetBundle) ConvertToAssetDB() (*assetdb.AssetDB, error) { return assetdb, nil } +// Dump will output the assets to the terminal func (a *AssetBundle) Dump() { println("Assets:") for _, asset := range a.assets {