Go to file
2025-06-03 10:53:39 +02:00
.github chore: update dependabot 2025-06-03 10:01:36 +02:00
.husky initial commit 2024-05-20 16:51:24 +02:00
pkg feat: expand env 2025-03-11 14:43:21 +01: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 chore: update setup 2025-03-11 16:13:41 +01:00
.golangci.yml feat: update golangci-lint 2025-06-03 10:00:24 +02:00
.goreleaser.yml chore: update goreleaser 2025-03-11 12:13:18 +01:00
.husky.yaml feat: update golangci-lint 2025-06-03 10:00:24 +02:00
go.mod feat: go 1.24.3 2025-06-03 10:00:33 +02:00
go.sum feat: go 1.24.3 2025-06-03 10:00:33 +02:00
LICENSE initial commit 2024-05-20 16:51:24 +02:00
Makefile feat: update golangci-lint 2025-06-03 10:00:24 +02:00
README.md chore: update setup 2025-03-11 16:13:41 +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