skip to Main Content

How to see tag key of json with go struct?

I am learning https://www.digitalocean.com/community/tutorials/how-to-use-json-in-go#using-a-struct-to-generate-json (old version of Go). I use go 1.20.1 , Windows 11 x64, GoLand 2022.3.2 . package sample3 import ( foo "encoding/json" "fmt" "time" ) type myJSON struct { IntValue int `json:"intValue"` BoolValue bool `json:"boolValue"` StringValue string…

VIEW QUESTION
Back To Top
Search