Skip to content

Instantly share code, notes, and snippets.

@tianon
Created February 19, 2014 22:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tianon/9103400 to your computer and use it in GitHub Desktop.
Save tianon/9103400 to your computer and use it in GitHub Desktop.
Go Newlines in Tags
package main
type SomeSqlRelatedStruct struct {
SomeValue int `magicsql:"MyDatabaseIntField"`
SomeValueThatComesFromSql *string `magicsql:"(
SELECT 'some magic subselect'
FROM someothertable
WHERE MainId = MyDatabaseIntField
)"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment