template

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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

func AddControllerInModule(controller string) string

AddControllerInModule add controller module

func AddHandlerModule

func AddHandlerModule(controller string) string

AddHandlerModule add controller to handler

func AddModelWhereAndUpdate

func AddModelWhereAndUpdate(code []byte) string

AddModelWhereAndUpdate add where and update to model

func AddRepositoryModule

func AddRepositoryModule(repo string) string

AddRepositoryModule template ...

func AddServiceModule

func AddServiceModule(repo string) string

AddServiceModule template ...

func ToCamel

func ToCamel(name string) string

ToCamel ...

func ToLowerCamel

func ToLowerCamel(name string) string

ToLowerCamel ...

func ToPlural

func ToPlural(name string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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