generator

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenConfig

func GenConfig() error

func GenEtc

func GenEtc() error

func GenFile added in v1.7.0

func GenFile(fileName, templateText string, opt ...Option) error

func GenHandlers

func GenHandlers() error

func GenI18N added in v1.3.1

func GenI18N() error

func GenLogic

func GenLogic() error

func GenMain

func GenMain() error

func GenMiddleware

func GenMiddleware() error

func GenResponse added in v1.2.1

func GenResponse() error

func GenRoutes

func GenRoutes() error

func GenSvcContext added in v1.3.9

func GenSvcContext() error

func GenTypes

func GenTypes() error

func OverrideTag added in v1.3.1

func OverrideTag(tp spec.Type, member spec.Member) string

Types

type Option added in v1.7.0

type Option func(*fileGenConfig)

func WithData added in v1.7.0

func WithData(data any) Option

WithData 设置数据

func WithDir added in v1.7.0

func WithDir(dir string) Option

WithDir 设置目录

func WithSubDir added in v1.7.0

func WithSubDir(dir string) Option

WithSubDir 设置二级目录

Jump to

Keyboard shortcuts

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