Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: GoDoc to be generated #6

Merged
merged 2 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions example/foo_filtgen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions example/pkg/bar/bar_filtgen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/templates/filtgen.gotpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ import (
{{- end}}
)
{{ range $strct := .Structs }}
// {{.Name}}Slice is a defined-type of []User.
// {{.Name}}Slice is a defined-type of []{{.Name}}.
// If a filter is to be performed, a cast to this type is necessary.
//
// Example:
//
// {{.Name}}Slice([]{{.Name}}{}).FooEq("bar").
type {{.Name}}Slice []{{.Name}}

// {{.Name}}Map is a defined-type of []{{.Name}}.
// {{.Name}}Map is a defined-type of map[T]{{.Name}}.
// If a filter is to be performed, a cast to this type is necessary.
//
// Example:
Expand Down
2 changes: 1 addition & 1 deletion internal/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ Copyright © 2024 - miyamo2 <[email protected]>
package internal

// Version is the version of the filtgen.
const Version = "v0.1.0"
const Version = "v0.1.1"
Loading