mirror of
https://github.com/foomo/gocontemplate.git
synced 2026-07-01 15:00:02 +00:00
main
Go Contemplate
A code generation helper.
Wrapper library around golang.org/x/tools/go/packages to filter only defined types and their dependencies.
Example
package main
import (
"github.com/foomo/gocontemplate/pkg/contemplate"
)
func main() {
ctpl, err := contemplate.Load(&contemplate.Config{
Packages: []*contemplate.PackageConfig{
{
Path: "github.com/foomo/sesamy-go/event",
Types: []string{"PageView"},
},
},
})
if err != nil {
panic(err)
}
}
How to Contribute
Please refer to the CONTRIBUTING details and follow the CODE_OF_CONDUCT and SECURITY guidelines.
License
Distributed under MIT License, please see license file within the code for more details.
Languages
Go
82.4%
Makefile
13.6%
Shell
4%
