- Notifications
You must be signed in to change notification settings - Fork0
foomo/gocontemplate
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A code generation helper.
Wrapper library aroundgolang.org/x/tools/go/packages
to filter only defined types and their dependencies.
package mainimport ("github.com/foomo/gocontemplate/pkg/contemplate")funcmain() {ctpl,err:=contemplate.Load(&contemplate.Config{Packages: []*contemplate.PackageConfig{ {Path:"github.com/foomo/sesamy-go/event",Types: []string{"PageView"}, }, }, })iferr!=nil {panic(err) }}
Please refer to theCONTRIBUTING details and follow theCODE_OF_CONDUCT andSECURITY guidelines.
Distributed under MIT License, please see license file within the code for more details.
About
A code generation helper