Skip to content

Instantly share code, notes, and snippets.

@tianon

tianon/main.go

Created Feb 19, 2014
Embed
What would you like to do?
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
You can’t perform that action at this time.