I have a mapping defined in a contract:
mapping(bytes32=>string) public name;
How can I access this in Go? abigen
provides bindings for functions but not variables. This question shows how to do this in Javascript but I can't find the equivalent for Go.
Note that I cannot create an Name()
function as this is a deployed contract not under my ownership.