Add create function template and fix some minor template bugs (#23)
This commit is contained in:
1 parent
4afb4f6be5
commit
e31e91a5ad
12 files changed
+204
-24
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user