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.
abigenfrom the.solfile gives different results to running it from the.abifile. The former gives the required functions. – jgm Jul 26 '17 at 18:57