A quick snippet to get some nicer debug of json and other mapped values.
1 2 3 4 5 6 7 8 //PrettyPrint print any interface func PrettyPrint(data interface{}) (err error) { indentedData, err := json.MarshalIndent(data, "", " ") if err == nil { fmt.Println(string(indentedData)) } return }
A refactored digest of my reading of the month.
A short introduction to give a bit of context :
I have been looking for a way to share on a regular basis some of my learnings. I tend to go through a pretty large amount of content as part of my work and in general. So here I will try to provide it as a structured digest.
The goal is to provide an interesting selection of content both practical and conceptual to help advancing how to use tech to solve real problems....
Golang - how to connect to google spreadsheet? Credentials You need to set up Google Credentials for your app. This part is a tad annoying. Mostly due to the UX of the Google Cloud Plateform. Let’s hope this will once be fixed.
Since it may be changing, I suggest you check the docs on Google. At the time of writing of this short tutorial, we need to:
Go to Google Cloud Console Create Project if needed....