helpers

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Env              = "JWT_SECRET=my-secret-key\nDB_CONN=host=localhost user=postgres password=postgres dbname=postgres sslmode=disable"
	Dockerfile       = "" /* 713-byte string literal not displayed */
	Dockerignore     = "" /* 159-byte string literal not displayed */
	Gitignore        = "#GENERATED BY go-create\nbuild/\ntmp/\n.env\n*.exe"
	ConsoleMain      = "package main\n\nimport \"fmt\"\n\nfunc main() {\n\tfmt.Println(\"Hello World!\")\n}"
	ModelREADME      = "# `/models`\n This is where you will create your models"
	ControllerREADME = "# `/controllers`\n This is where you will create your controllers"
	ServiceREADME    = "# `/services`\n This is where you will create your services"
	RouteREADME      = "# `/routes`\n This is where you will create your public and private routes"
	DatabaseREADME   = "# `/database`\n This is where you will create your database"
	ConfigREADME     = "# `/config`\n This is where you will create your config"
	BinREADME        = "# `/bin`\n This folder contains the binary files of the app"
	CmdREADME        = "# `/cmd`\n This folder contains the main.go file of the app"
	InternalREADME   = "" /* 138-byte string literal not displayed */
	PkgREADME        = "# `/pkg`\n Library code that's ok to use by external applications."
	PrivateRoute     = "" /* 221-byte string literal not displayed */
	PublicRoute      = "" /* 220-byte string literal not displayed */
)

Functions

func GenerateDB

func GenerateDB(folderName string) string

func GenerateMainWeb

func GenerateMainWeb(moduleName string) string

func GenerateModel

func GenerateModel(folderName string, imports string, modelName string, structStr string) string

func GenerateService

func GenerateService(folderName string, module string, model 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