gen

package
v0.0.0-...-8d1786a Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Overview

Package gen contains all the components for code generation.

Package gen contains all the components for code generation.

Package gen contains all the components for code generation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateContractABIBIN

func GenerateContractABIBIN(writer io.Writer, abi string, bin string, theType string,
	packageName string) error

GenerateContractABIBIN will write the new abi/bin const file to the io.Writer

func OutputTemplatedData

func OutputTemplatedData(writer io.Writer, tmplName string, tmpl string,
	tmplData interface{}, gofmt bool) error

OutputTemplatedData is a shared function to output templated data given the template and template data to the writer.

Types

type LibGenTmplData

type LibGenTmplData struct {
	PackageName      string
	GenTime          time.Time
	ContractTypeName string
	AbiString        string
	BinString        string
}

LibGenTmplData represents the data passed to the template

Jump to

Keyboard shortcuts

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