Documentation ¶
Index ¶
- Constants
- func AddValuesToContext(ctx context.Context) context.Context
- func Generate(ctx context.Context) error
- func GetGoTemplatesRootPath() string
- func Process(ctx context.Context) error
- func RunGoFmt(directoryName string) error
- func RunMakeProto(directoryName string) error
- type GoValues
- type LGolangNode
Constants ¶
View Source
const CommonFiles = "common-files"
View Source
const GoGinServerFramework = "go-gin-server"
View Source
const GoGrpcServerFramework = "go-grpc-server"
View Source
const TemplatesPath = "templates/compage-template-go"
TemplatesPath directory of template files
Variables ¶
This section is empty.
Functions ¶
func GetGoTemplatesRootPath ¶
func GetGoTemplatesRootPath() string
func RunGoFmt ¶
RunGoFmt runs go-fmt with args passed on generated code present in the directory passed.
func RunMakeProto ¶
RunMakeProto runs protoc with args passed on generated code present in the directory passed.
Types ¶
type GoValues ¶
type GoValues struct { Values *languages.Values LGoLangNode *LGolangNode }
type LGolangNode ¶
type LGolangNode struct {
*languages.LanguageNode
}
LGolangNode language specific struct.
func (*LGolangNode) FillDefaults ¶
func (n *LGolangNode) FillDefaults() error
FillDefaults constructor function
Source Files ¶
Click to show internal directories.
Click to hide internal directories.