Documentation ¶
Index ¶
- Constants
- Variables
- func AddControllerInModule(controller string) string
- func AddHandlerModule(controller string) string
- func AddModelWhereAndUpdate(code []byte) string
- func AddRepositoryModule(repo string) string
- func AddServiceModule(repo string) string
- func ToCamel(name string) string
- func ToLowerCamel(name string) string
- func ToPlural(name string) string
Constants ¶
View Source
const AppToml = `` /* 449-byte string literal not displayed */
AppToml template ...
View Source
const AppYaml = `` /* 404-byte string literal not displayed */
AppYaml template ...
View Source
const Config = `` /* 1857-byte string literal not displayed */
Config template ...
View Source
const ControllerModule = `package controller
import (
"go.uber.org/fx"
)
// Module for export controllers to fx injection
var Module = fx.Provide()
`
ControllerModule template ...
View Source
const Dockerfile = `` /* 482-byte string literal not displayed */
View Source
const EchoController = `` /* 1227-byte string literal not displayed */
EchoController template ...
View Source
const EchoRouter = `` /* 282-byte string literal not displayed */
EchoRouter template ...
View Source
const GinController = `` /* 775-byte string literal not displayed */
GinController template ...
View Source
const GinRouter = `` /* 280-byte string literal not displayed */
GinRouter template ...
View Source
const Handler = `` /* 430-byte string literal not displayed */
Handler template ...
View Source
const Main = `` /* 194-byte string literal not displayed */
Main template ...
View Source
const Repository = `` /* 3851-byte string literal not displayed */
Repository template
View Source
const RepositoryModule = `` /* 2297-byte string literal not displayed */
RepositoryModule template ...
View Source
const Server = `` /* 935-byte string literal not displayed */
Server template ...
View Source
const Service = `` /* 1907-byte string literal not displayed */
Service template ...
View Source
const ServiceModule = `package service
import "go.uber.org/fx"
// Module for fx provide service
var Module = fx.Provide()
`
ServiceModule template ...
Variables ¶
View Source
var Map = template.FuncMap{ "ToLowerCamel": ToLowerCamel, "ToCamel": ToCamel, "ToPlural": ToPlural, }
TemplateMap ...
Functions ¶
func AddControllerInModule ¶
AddControllerInModule add controller module
func AddHandlerModule ¶
AddHandlerModule add controller to handler
func AddModelWhereAndUpdate ¶
AddModelWhereAndUpdate add where and update to model
func AddRepositoryModule ¶
AddRepositoryModule template ...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.