Created
July 13, 2016 20:09
-
-
Save gregbuehler/e63f669cbf598a86d92aff1cdb41c701 to your computer and use it in GitHub Desktop.
Golang struct nastiness
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
columns => Id,Description,BarId,BarName | |
type Bar struct { | |
id int `db:BarId` | |
name sql.NullString `db:BarName` | |
} | |
type Foo struct { | |
id int `db:Id` | |
description sql.NullString `db:Description` | |
bar Bar | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment