json.Unmarshal([]byte(byteValue), &result)
After json.Unmarshal, the result is a map[string]interface{}
I can manipulate the values of the map direcly with:
result["player"].(map[string]interface{})["inventory"].(map[string]interface{})["gold"]=100
But this is a long variable name, I want to appoint a pointer to adress of this and manipulate with a shorter name like:
gold:=&result["player"].(map[string]interface{})["inventory"].(map[string]interface{})["gold"]
Then manipulate only *gold.
Trying to do this, I get the error:
cannot take the address of result["player"].(map[string]interface {})["inventory"].(map[string]interface {})["gold"]