lib

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressFile

func CompressFile(filename string) (string, error)

CompressFile reads the given file and converts it to a gzip compressed hex string

func DecompressHexString

func DecompressHexString(hexdata string) ([]byte, error)

DecompressHexString decompresses the gzip/hex encoded data

func FindGoFiles

func FindGoFiles(directory string) ([]string, error)

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 GetMewnFiles(args ...string) []string

func HasMewnReference

func HasMewnReference(filename string) (bool, error)

HasMewnReference determines if the current file has a reference to the mewn library

Types

type ReferencedAsset

type ReferencedAsset struct {
	Name      string
	AssetPath string
}

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

Jump to

Keyboard shortcuts

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