base

package
v0.0.0-...-14b1ee5 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TmplFS embed.FS

Functions

func AppendDbConnectionToMain

func AppendDbConnectionToMain()

ADD db conection to main.go

func AppendTemplateToFile

func AppendTemplateToFile(templatePath string, outputPath string, data interface{}) error

func AppendToRoutingCrud

func AppendToRoutingCrud(moduleName string, moduleNotModify string)

ADD controller to router.go crud

func AppendToRoutingSimple

func AppendToRoutingSimple(moduleName string, moduleNotModify string)

ADD controller to router.go simple

func BaseData

func BaseData(folderName string)

func BaseDbClient

func BaseDbClient(clientName string)

func BaseModuleCrud

func BaseModuleCrud(moduleName string, moduleNameSnakeCase string, moduleNotModify string)

func DeleteMethod

func DeleteMethod(moduleName string, methodName string)

func GetMethod

func GetMethod(moduleName string, methodName string)

func PostMethod

func PostMethod(moduleName string, methodName string)

func PutMethod

func PutMethod(moduleName string, methodName string)

func ReplaceLastCharacterWithTemplate

func ReplaceLastCharacterWithTemplate(filePath, templatePath, oldChar string, data interface{}) error

Types

type DeleteMethodData

type DeleteMethodData struct {
	ModuleName      string
	StructName      string
	MethodNameLower string
	MethodFuncName  string
	EndpointName    string
	FirstChar       string
	ParamId         string
}

type GetMethodData

type GetMethodData struct {
	ModuleName     string
	StructName     string
	MethodFuncName string
	MethodName     string
	EndpointName   string
	FirstChar      string
}

type PostMethodData

type PostMethodData struct {
	ModuleName      string
	StructName      string
	MethodNameLower string
	MethodFuncName  string
	EndpointName    string
	FirstChar       string
}

type PutMethodData

type PutMethodData struct {
	ModuleName      string
	StructName      string
	MethodNameLower string
	MethodFuncName  string
	EndpointName    string
	FirstChar       string
	EndpointCamelId string
}

Jump to

Keyboard shortcuts

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