Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A code generation helper

License

NotificationsYou must be signed in to change notification settings

foomo/gocontemplate

Repository files navigation

Build StatusGo Report CardGoDoc

sesamy

Go Contemplate

A code generation helper.

Wrapper library aroundgolang.org/x/tools/go/packages to filter only defined types and their dependencies.

Example

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)  }}

How to Contribute

Please refer to theCONTRIBUTING details and follow theCODE_OF_CONDUCT andSECURITY guidelines.

License

Distributed under MIT License, please see license file within the code for more details.

Made with ♥foomo bybestbytes


[8]ページ先頭

©2009-2025 Movatter.jp