github.com/CloudCom/goose@v0.0.0-20151110184009-e03c3249c21b/lib/goose/templates/migration.go.tmpl (about) 1 package main 2 3 import ( 4 "database/sql" 5 ) 6 7 // Up is executed when this migration is applied 8 func Up_{{ . }}(txn *sql.Tx) { 9 10 } 11 12 // Down is executed when this migration is rolled back 13 func Down_{{ . }}(txn *sql.Tx) { 14 15 } 16 {{/* vim: set ft=go.gotexttmpl: */}}