package
2.0.1+incompatible
Repository: https://github.com/bcbchain/toolbox.git
Documentation: pkg.go.dev

# Functions

nolint unhandled CalcContractAddress calculate contract address from name、version and owner.
CalcMethodID - calculate method id with method prototype.
Check 分析该目录下的合约代码,进行各种规范检查,提取关键信息.
nolint unhandled CheckAddress check address and return result.
Versions - 返回合约版本列表.
CreatePrototype - create method prototype.
ErrorTransfer - transform common err to types.Error.
ExpandMapFieldKey - write map field key type to string.
ExpandMapFieldKeyToKey - write map field key make to string as access key.
ExpandMapFieldVal - write map field val type to string.
ExpandMapFieldValNoStar - write map field val type to string but not star, ...
nolint unhandled.
ExpandNames - write field names to string nolint unhandled ..
ExpandStruct - actually expand GenDecl nolint unhandled ..
ExpandType - write field type to string nolint unhandled ..
ExpandTypeNoStar - write field type to string without star, ...
FieldsExpand - expand a multi name field to multi single name field.
FilterImports filter import.
FmtAndWrite - go fmt content and write to filename.
GetContractAddress get contract address from name、version and owner.
GetGas - get gas value.
No description provided by the author
LowerFirst - first letter to lower.
CreatePrototype - create method prototype.
UpperFirst - first letter to upper.

# Variables

LiteralTypes - primitive type.
No description provided by the author
WhiteListPKG - these packages can be imported.
WhiteListPkgPrefix - packages start with these paths are all allowed.

# Structs

Callee 被調用的方法.
No description provided by the author
Field - describe the Field of go ast.
Function - describe the function in go ast.
Import - ..
No description provided by the author
Method - the interface's method member has no receiver.
No description provided by the author
Result is the parse result.