Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatPackageName ¶
FormatPackageName to npm like spec
func SavePackage ¶
SavePackage takes a Package and saves it to the %folderPath%/package.json
Types ¶
type Package ¶
type Package struct { // basics Name string `json:"name"` Version string `json:"version"` Description string `json:"description,omitempty"` Module bool `json:"module,omitempty"` // script files Preload string `json:"preload,omitempty"` Postload string `json:"postload,omitempty"` Prestart string `json:"prestart,omitempty"` Plugin string `json:"plugin,omitempty"` // dependencies ModDep map[string]string `json:"ccmodDependencies,omitempty"` Dep map[string]string `json:"dependencies,omitempty"` }
Package represents a CrossCode Mod package.json file
func GetPackage ¶
GetPackage takes a filePath and returns a Package or error
Click to show internal directories.
Click to hide internal directories.