Skip to content

Commit

Permalink
fix: GoDoc to be generated (#6)
Browse files Browse the repository at this point in the history
* fix

* fix
  • Loading branch information
miyamo2 authored Aug 30, 2024
1 parent 0ef5dd0 commit ff1cfd8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
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"

0 comments on commit ff1cfd8

Please sign in to comment.