Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Package = amino.RegisterPackage(amino.NewPackage( "github.com/gnolang/gno/gnovm", "gnovm", amino.GetCallersDirname(), ).WithDependencies().WithTypes( MemFile{}, "MemFile", MemPackage{}, "MemPackage", ))
Functions ¶
func SplitFilepath ¶
Splits a path into the dirpath and filename.
Types ¶
type MemPackage ¶
type MemPackage struct { Name string `json:"name" yaml:"name"` // package name as declared by `package` Path string `json:"path" yaml:"path"` // import path Files []*MemFile `json:"files" yaml:"files"` }
MemPackage represents the information and files of a package which will be stored in memory. It will generally be initialized by package gnolang's ReadMemPackage.
NOTE: in the future, a MemPackage may represent updates/additional-files for an existing package.
func (*MemPackage) GetFile ¶
func (mempkg *MemPackage) GetFile(name string) *MemFile
func (*MemPackage) IsEmpty ¶
func (mempkg *MemPackage) IsEmpty() bool
func (*MemPackage) Validate ¶
func (mempkg *MemPackage) Validate() error
path must not contain any dots after the first domain component. file names must contain dots. NOTE: this is to prevent conflicts with nested paths.
Click to show internal directories.
Click to hide internal directories.