Documentation ¶
Index ¶
- Variables
- func AppImport(path string) *golang.Import
- func EnumImports(ts types.Types, pkg string, enums enum.Enums) (golang.Imports, error)
- func ImpSlicesForGo(v string) *golang.Import
- func ImportsForTypes(ctx string, database string, ts ...types.Type) golang.Imports
- func SpecialImports(cols model.Columns, pkg string, enums enum.Enums) (golang.Imports, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ImpAudit = AppImport("app/lib/audit") ImpApp = AppImport("app") ImpAppController = AppImport("app/controller") ImpAppDatabase = AppImport("app/lib/database") ImpAppMenu = AppImport("app/lib/menu") ImpAppUtil = AppImport("app/util") ImpContext = golang.NewImport(golang.ImportTypeInternal, "context") ImpComponents = AppImport("views/components") ImpCutil = AppImport("app/controller/cutil") ImpDBDriver = golang.NewImport(golang.ImportTypeInternal, "database/sql/driver") ImpErrors = golang.NewImport(golang.ImportTypeExternal, "github.com/pkg/errors") ImpFastHTTP = golang.NewImport(golang.ImportTypeExternal, "github.com/valyala/fasthttp") ImpFilter = AppImport("app/lib/filter") ImpFmt = golang.NewImport(golang.ImportTypeInternal, "fmt") ImpJSON = golang.NewImport(golang.ImportTypeInternal, "encoding/json") ImpLayout = AppImport("views/layout") ImpLo = golang.NewImport(golang.ImportTypeExternal, "github.com/samber/lo") ImpMSSQL = golang.NewImport(golang.ImportTypeExternal, "github.com/denisenkom/go-mssqldb").WithAlias("mssql") ImpRouter = golang.NewImport(golang.ImportTypeExternal, "github.com/fasthttp/router") ImpSearchResult = AppImport("app/lib/search/result") ImpSlices = golang.NewImport(golang.ImportTypeInternal, "slices") ImpSlices119 = golang.NewImport(golang.ImportTypeExternal, "golang.org/x/exp/slices") ImpSQL = golang.NewImport(golang.ImportTypeInternal, "database/sql") ImpSQLx = golang.NewImport(golang.ImportTypeExternal, "github.com/jmoiron/sqlx") ImpStrconv = golang.NewImport(golang.ImportTypeInternal, "strconv") ImpStrings = golang.NewImport(golang.ImportTypeInternal, "strings") ImpTime = golang.NewImport(golang.ImportTypeInternal, "time") ImpURL = golang.NewImport(golang.ImportTypeInternal, "net/url") ImpUUID = golang.NewImport(golang.ImportTypeExternal, "github.com/google/uuid") ImpXML = golang.NewImport(golang.ImportTypeInternal, "encoding/xml") )
Functions ¶
func EnumImports ¶ added in v1.0.9
func ImpSlicesForGo ¶ added in v0.11.22
func ImportsForTypes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.