Added imports objects
This commit is contained in:
parent
195e8d16e8
commit
57e20cbfe3
1 changed files with 21 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue