Thanks alot!!
On Monday, 18 September 2017 18:38:49 UTC+5:30, Shawn Milochik wrote:
>
> Your struct has all unexported fields. So the json package can't see them.
> You have to capitalize the field names.
>
--
You received this message because you are subscribed to the Google Groups
"golang-n
package main
import "fmt"
import "encoding/json"
type Rec struct {
recordIdstring `json:"recordId"`
cpmId string `json:"cpmId"`
tpDataType string `json:"tpDataType"`
tpData string `json:"tpData"`
blockId string `json:"blockId"`
}
func main() {
var