constants

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Framework import paths
	//nolint:godoclint
	ImportPathModel     = "github.com/forbearing/gst/model"
	ImportPathService   = "github.com/forbearing/gst/service"
	ImportPathRouter    = "github.com/forbearing/gst/router"
	ImportPathTypes     = "github.com/forbearing/gst/types"
	ImportPathConsts    = "github.com/forbearing/gst/types/consts"
	ImportPathBootstrap = "github.com/forbearing/gst/bootstrap"
	ImportPathUtil      = "github.com/forbearing/gst/util"

	// ModelPackagePath is the package path for comparison
	ModelPackagePath = `"github.com/forbearing/gst/model"`
)

Import paths

View Source
const (
	ExtensionGo     = ".go"
	PatternTestFile = "_test.go"
	PrefixIgnore    = "_"
)

File patterns and extensions

View Source
const (
	DirVendor   = "vendor"
	DirTestData = "testdata"
	DirModel    = "model"
	DirService  = "service"
	DirRouter   = "router"
)

Directory names

View Source
const (
	PkgMain      = "main"
	PkgModel     = "model"
	PkgService   = "service"
	PkgRouter    = "router"
	PkgBootstrap = "bootstrap"
)

Package names

View Source
const (
	FieldBase  = "Base"
	FieldEmpty = "Empty"
)

Model field names

View Source
const (
	FuncInit     = "init"
	FuncMain     = "main"
	FuncInit2    = "Init"
	FuncRegister = "Register"
	FuncRunOrDie = "RunOrDie"
)

Function names

View Source
const (
	PrefixModel         = "model"
	PrefixService       = "service"
	SeparatorUnderscore = "_"
)

Prefix for model package conversion

View Source
const (
	SubDirConfigx    = "configx"
	SubDirCronjob    = "cronjob"
	SubDirMiddleware = "middleware"
	SubDirModel      = "model"
	SubDirService    = "service"
	SubDirRouter     = "router"
)

Project subdirectories for main.go imports

View Source
const (
	BootstrapBootstrap = "Bootstrap"
	BootstrapRun       = "Run"
	RouterInit         = "Init"
)

Bootstrap method names

View Source
const (
	CacheFileName = ".gg_cache.json"
)

Cache file

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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