Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Upgrader ¶
type Upgrader struct { //RPC API client package Client bytes.Buffer //RPC or/and HTTP API server package Module map[string]*bytes.Buffer //Original package with replaced import. Pkg string Parser *parser.Parser ServiceConfig *types.Service }
Upgrader hold parsed package and uses templates to contruct new, upgraded, packages.
func NewUpgrader ¶
NewUpgrader returns initialized Upgrader
func (*Upgrader) BuildTo ¶
BuildTo builds upgraded package binary to specified directory. For main packages build source dir is tie_modules/upgraded.
func (*Upgrader) GenerateModules ¶
GenerateModules genarates modules code.
Click to show internal directories.
Click to hide internal directories.