Skip to content
#

godoc

Here are 66 public repositories matching this topic...

rahulrumalla
rahulrumalla commented Feb 9, 2018

Currently, null values from the query results do not map and rather error out when trying to map to a struct's value type field. This however works if the target field is a pointer.

If the resulting value is null and the target is a value type field, resort to the default value
i.e., if the record 1, John, doe, [email protected], null is being mapped to the following struct

type struct Us

Improve this page

Add a description, image, and links to the godoc topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the godoc topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.