What is the standard practice between required fields of a struct you're expecting to deserialize using JSON, and using pointers for this (if there's any correlation)?
API defined a string as required. Do you define it as a string and check for zero-value for that type, or *string and check for nil, etc.? Any other situations/instances were it's best practice to user a pointer for defining struct fields over the standard type? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/26d5e7f0-83e0-40eb-8274-5d9791f29b77n%40googlegroups.com.