Documentation ¶
Index ¶
- func ExprStringP(expr ast.Expr) string
- func GenConfig(dir string)
- func GenDb(dir string)
- func GenDoc(dir string, ic astutils.InterfaceCollector)
- func GenDotenv(dir string)
- func GenGoClient(dir string, ic astutils.InterfaceCollector, env string)
- func GenHttpHandler(dir string, ic astutils.InterfaceCollector)
- func GenHttpHandlerImpl(dir string, ic astutils.InterfaceCollector)
- func GenHttpHandlerImplWithImpl(dir string, ic astutils.InterfaceCollector, omitempty bool, ...)
- func GenHttpMiddleware(dir string)
- func GenK8s(dir string, svcname, image string)
- func GenMain(dir string, ic astutils.InterfaceCollector)
- func GenSvcImpl(dir string, ic astutils.InterfaceCollector)
- func InitSvc(dir string)
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExprStringP ¶ added in v0.2.6
Support all built-in type referenced from https://golang.org/pkg/builtin/ Support map with string key Support structs of vo package Support slice of types mentioned above Not support alias type (all alias type fields of a struct will be outputed as v3.Any in openapi 3.0 json document) Support anonymous struct type as struct field type in vo package or as parameter type in method signature in svc.go file besides context.Context, multipart.FileHeader, os.File when go-doudou command line flag doc is true
func GenDoc ¶
func GenDoc(dir string, ic astutils.InterfaceCollector)
Currently not suport alias type in vo file. TODO
func GenGoClient ¶
func GenGoClient(dir string, ic astutils.InterfaceCollector, env string)
func GenHttpHandler ¶
func GenHttpHandler(dir string, ic astutils.InterfaceCollector)
func GenHttpHandlerImpl ¶
func GenHttpHandlerImpl(dir string, ic astutils.InterfaceCollector)
func GenHttpHandlerImplWithImpl ¶
func GenHttpHandlerImplWithImpl(dir string, ic astutils.InterfaceCollector, omitempty bool, caseconvertor func(string) string)
Parsed value from query string parameters or application/x-www-form-urlencoded form will be string type. You may need to convert the type by yourself.
func GenHttpMiddleware ¶
func GenHttpMiddleware(dir string)
func GenMain ¶
func GenMain(dir string, ic astutils.InterfaceCollector)
func GenSvcImpl ¶
func GenSvcImpl(dir string, ic astutils.InterfaceCollector)
Types ¶
This section is empty.