helper

package
v0.7.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ImpAudit         = AppImport("app/lib/audit")
	ImpApp           = AppImport("app")
	ImpAppController = AppImport("app/controller")
	ImpAppUtil       = AppImport("app/util")
	ImpContext       = golang.NewImport(golang.ImportTypeInternal, "context")
	ImpComponents    = AppImport("views/components")
	ImpCutil         = AppImport("app/controller/cutil")
	ImpDatabase      = AppImport("app/lib/database")
	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")
	ImpAppMenu       = AppImport("app/lib/menu")
	ImpRouter        = golang.NewImport(golang.ImportTypeExternal, "github.com/fasthttp/router")
	ImpSlices        = golang.NewImport(golang.ImportTypeExternal, "golang.org/x/exp/slices")
	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")
	ImpUUID          = golang.NewImport(golang.ImportTypeExternal, "github.com/google/uuid")
)

Functions

func AppImport

func AppImport(path string) *golang.Import

func ImportsForTypes

func ImportsForTypes(ctx string, ts ...types.Type) golang.Imports

func SpecialImports added in v0.6.20

func SpecialImports(g *golang.File, cols model.Columns, pkg string, enums enum.Enums) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL