Added imports objects

This commit is contained in:
Patrick O'brien 2016-03-01 21:11:55 +10:00
parent 195e8d16e8
commit 57e20cbfe3

View file

@ -6,6 +6,27 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )
// imports defines the optional standard imports and
// thirdparty imports (from github for example)
type imports struct {
standard []string
thirdparty []string
}
// sqlBoilerDefaultImports defines the list of default template imports.
// Imports that are defined
var sqlBoilerDefaultImports = imports{
standard: []string{
"errors",
"fmt",
},
thirdparty: []string{
"github.com/jmoiron/sqlx",
},
}
var sqlBoilerCustomImports map[string]imports
// sqlBoilerCommands points each command to its cobra.Command variable. // sqlBoilerCommands points each command to its cobra.Command variable.
// //
// If you would like to add your own custom command, add it to this // If you would like to add your own custom command, add it to this