Decoding JSON by Golang
func main() { data := `{ "A_key1": { "B_key1": { "C_key": "value" } }, "A_key2": { "B_key2": { "C_key": "value" } }, "A_key3": { "B_key3": { "C_key": "value" } }, "A_key4": { "B_key4": { "C_key": "value" } }, "A_key5": { "B_key5": { "C_key": "value" } } }` var p interface{} json.NewDecoder(strings.NewReader(data)).Decode(&p) fmt.Println(p) } Go Playground
Dynamically Creating JSON by Golang
obj := map[string]interface{}{} obj["hoge"] = "huga" fmt.Println(obj) Go Playground
Retrieving Response Headers by Golang
res, _ := client.Do(req) contentType := res.Header.Get("Content-Type") contentLength := res.Header.Get("Content-Length")
ggsrun was updated to v.1.2.0 Added a command for retrieving revision files on Google Drive. Some modifications. You can check this at here.
goris is a CLI tool to search for images with Google Reverse Image Search.
Today, it was updated to v1.0.1. Please check it out. https://github.com/tanaikech/goris
When number of retrieved URLs is smaller than number of default output, an error had occurred. This was fixed.