Still pretty new with Go. I'm trying to get go to essentially print a struct with the keys and values as close to json as possible.
The way I'm currently doing this is having GO on it's own server and whenever a get request is made, it returns the JSON. I would like to have GO as an executable on my primary Rails server and just return the JSON with something like Println (or whatever would make it stay in struct form). The problem is when I try to go this route, the keys from the struct aren't printed with it and I would basically have to add the keys as part of the return string.
Is there a simple way to do this with keeping the correct keys and values (and their types, so if the value is an array, keep the array)