DEV Community

Discussion on: Pointers, Marshalling, and Unmarshalling Data in Go

Collapse
 
jlmodell profile image
jlmodell

namePointer := &name
fmt.Println("namePointer: ", pointer)

pointer s/b namePointer

I also like to use marshalindent with “/t” to make json easier to read when sending to stdout.

Collapse
 
lexingdailylife profile image
Martin Cartledge

updated! thanks for reading