Documentation ¶
Index ¶
- func CompressFile(filename string) (string, error)
- func DecompressHexString(hexdata string) ([]byte, error)
- func FindGoFiles(directory string) ([]string, error)
- func GeneratePackFileString(assetBundle *ReferencedAssets) string
- func GetMewnFiles(args ...string) []string
- func HasMewnReference(filename string) (bool, error)
- type ReferencedAsset
- type ReferencedAssets
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompressFile ¶
CompressFile reads the given file and converts it to a gzip compressed hex string
func DecompressHexString ¶
DecompressHexString decompresses the gzip/hex encoded data
func FindGoFiles ¶
FindGoFiles finds all go files recursively from the given directory
func GeneratePackFileString ¶
func GeneratePackFileString(assetBundle *ReferencedAssets) string
GeneratePackFileString creates the contents of a pack file
func GetMewnFiles ¶
func HasMewnReference ¶
HasMewnReference determines if the current file has a reference to the mewn library
Types ¶
type ReferencedAsset ¶
ReferencedAsset holds the information for an asset referenced by the user
type ReferencedAssets ¶
type ReferencedAssets struct { Caller string PackageName string Assets []*ReferencedAsset }
ReferencedAssets is a collection of assets referenced from a file
func GetReferencedAssets ¶
func GetReferencedAssets(filenames []string) ([]*ReferencedAssets, error)
GetReferencedAssets gets a list of referenced assets from the AST
Click to show internal directories.
Click to hide internal directories.