Add create function template and fix some minor template bugs (#23)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2020-05-04 22:59:45 -04:00
1 parent 4afb4f6be5
commit e31e91a5ad
12 files changed
+204 -24

No files matched your search

+2 -2
View File
@@ -4,7 +4,7 @@ package main
import "os"
type generateInfo struct {
type structInfo struct {
inFile string
inName string
outFile string
@@ -16,7 +16,7 @@ type generateInfo struct {
templateType templateType
}
var inputStructs = []*generateInfo{
var inputStructs = []*structInfo{
{
os.Getenv("APIGEN_BASEPATH") + "/internal/gen/controller/api/error.pb.go",
"Error",