Go to file
2025-03-11 12:13:18 +01:00
.github docs: add community files 2025-03-11 12:13:05 +01:00
.husky initial commit 2024-05-20 16:51:24 +02:00
pkg fix: add nil check 2024-05-30 15:15:32 +02:00
test feat: bump go 1.22.3 2024-05-21 08:30:40 +02:00
.editorconfig initial commit 2024-05-20 16:51:24 +02:00
.gitignore initial commit 2024-05-20 16:51:24 +02:00
.golangci.yml initial commit 2024-05-20 16:51:24 +02:00
.goreleaser.yml chore: update goreleaser 2025-03-11 12:13:18 +01:00
.husky.yaml initial commit 2024-05-20 16:51:24 +02:00
go.mod feat: bump go 1.22.3 2024-05-21 08:30:40 +02:00
go.sum feat: bump go 1.22.3 2024-05-21 08:30:40 +02:00
LICENSE initial commit 2024-05-20 16:51:24 +02:00
Makefile initial commit 2024-05-20 16:51:24 +02:00
README.md docs: add community files 2025-03-11 12:13:05 +01:00

Build Status Go Report Card GoDoc

sesamy

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.

Made with ♥ foomo by bestbytes