gotemplates

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: Apache-2.0, BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Templates = []map[string]string{
	config,
	common,
	constsGo,
	contractGo,
	eventsGo,
	funcsGo,
	keysGo,
	libGo,
	mainGo,
	paramsGo,
	proxyGo,
	resultsGo,
	stateGo,
	structsGo,
	typedefsGo,
}
View Source
var TypeDependent = model.StringMapMap{
	"fldLangType": {
		"Address":   "wasmlib.ScAddress",
		"AgentID":   "wasmlib.ScAgentID",
		"Bool":      "bool",
		"ChainID":   "wasmlib.ScChainID",
		"Color":     "wasmlib.ScColor",
		"Hash":      "wasmlib.ScHash",
		"Hname":     "wasmlib.ScHname",
		"Int8":      "int8",
		"Int16":     "int16",
		"Int32":     "int32",
		"Int64":     "int64",
		"RequestID": "wasmlib.ScRequestID",
		"String":    "string",
		"Uint8":     "uint8",
		"Uint16":    "uint16",
		"Uint32":    "uint32",
		"Uint64":    "uint64",
	},
	"fldTypeID": {
		"Address":   "wasmlib.TYPE_ADDRESS",
		"AgentID":   "wasmlib.TYPE_AGENT_ID",
		"Bool":      "wasmlib.TYPE_BOOL",
		"ChainID":   "wasmlib.TYPE_CHAIN_ID",
		"Color":     "wasmlib.TYPE_COLOR",
		"Hash":      "wasmlib.TYPE_HASH",
		"Hname":     "wasmlib.TYPE_HNAME",
		"Int8":      "wasmlib.TYPE_INT8",
		"Int16":     "wasmlib.TYPE_INT16",
		"Int32":     "wasmlib.TYPE_INT32",
		"Int64":     "wasmlib.TYPE_INT64",
		"RequestID": "wasmlib.TYPE_REQUEST_ID",
		"String":    "wasmlib.TYPE_STRING",
		"Uint8":     "wasmlib.TYPE_INT8",
		"Uint16":    "wasmlib.TYPE_INT16",
		"Uint32":    "wasmlib.TYPE_INT32",
		"Uint64":    "wasmlib.TYPE_INT64",
		"":          "wasmlib.TYPE_BYTES",
	},
	"fldToKey32": {
		"Address":   "key.KeyID()",
		"AgentID":   "key.KeyID()",
		"Bool":      "???cannot use Bool as map key",
		"ChainID":   "key.KeyID()",
		"Color":     "key.KeyID()",
		"Hash":      "key.KeyID()",
		"Hname":     "key.KeyID()",
		"Int8":      "wasmlib.GetKeyIDFromUint64(uint64(key), 1)",
		"Int16":     "wasmlib.GetKeyIDFromUint64(uint64(key), 2)",
		"Int32":     "wasmlib.GetKeyIDFromUint64(uint64(key), 4)",
		"Int64":     "wasmlib.GetKeyIDFromUint64(uint64(key), 8)",
		"RequestID": "key.KeyID()",
		"String":    "wasmlib.Key(key).KeyID()",
		"Uint8":     "wasmlib.GetKeyIDFromUint64(uint64(key), 1)",
		"Uint16":    "wasmlib.GetKeyIDFromUint64(uint64(key), 2)",
		"Uint32":    "wasmlib.GetKeyIDFromUint64(uint64(key), 4)",
		"Uint64":    "wasmlib.GetKeyIDFromUint64(key, 8)",
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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