diff --git a/example/foo_filtgen.go b/example/foo_filtgen.go index 1ea2df4..196ae2c 100644 --- a/example/foo_filtgen.go +++ b/example/foo_filtgen.go @@ -1,4 +1,4 @@ -// Code generated by filtgen@v0.1.0; DO NOT EDIT. +// Code generated by filtgen@v0.1.1; DO NOT EDIT. // // See here for more information on filtgen: https://github.com/miyamo2/filtgen package main @@ -12,7 +12,7 @@ import ( s "database/sql" ) -// FooSlice is a defined-type of []User. +// FooSlice is a defined-type of []Foo. // If a filter is to be performed, a cast to this type is necessary. // // Example: @@ -20,7 +20,7 @@ import ( // FooSlice([]Foo{}).FooEq("bar"). type FooSlice []Foo -// FooMap is a defined-type of []Foo. +// FooMap is a defined-type of map[T]Foo. // If a filter is to be performed, a cast to this type is necessary. // // Example: @@ -7419,7 +7419,7 @@ func (s FooSeq2[T]) NullStringMatches(matcher func(s.NullString) bool) FooSeq2[T } } -// BazSlice is a defined-type of []User. +// BazSlice is a defined-type of []Baz. // If a filter is to be performed, a cast to this type is necessary. // // Example: @@ -7427,7 +7427,7 @@ func (s FooSeq2[T]) NullStringMatches(matcher func(s.NullString) bool) FooSeq2[T // BazSlice([]Baz{}).FooEq("bar"). type BazSlice []Baz -// BazMap is a defined-type of []Baz. +// BazMap is a defined-type of map[T]Baz. // If a filter is to be performed, a cast to this type is necessary. // // Example: diff --git a/example/pkg/bar/bar_filtgen.go b/example/pkg/bar/bar_filtgen.go index d44b3bc..f59ad40 100644 --- a/example/pkg/bar/bar_filtgen.go +++ b/example/pkg/bar/bar_filtgen.go @@ -1,4 +1,4 @@ -// Code generated by filtgen@v0.1.0; DO NOT EDIT. +// Code generated by filtgen@v0.1.1; DO NOT EDIT. // // See here for more information on filtgen: https://github.com/miyamo2/filtgen package bar @@ -8,7 +8,7 @@ import ( "strings" ) -// BarSlice is a defined-type of []User. +// BarSlice is a defined-type of []Bar. // If a filter is to be performed, a cast to this type is necessary. // // Example: @@ -16,7 +16,7 @@ import ( // BarSlice([]Bar{}).FooEq("bar"). type BarSlice []Bar -// BarMap is a defined-type of []Bar. +// BarMap is a defined-type of map[T]Bar. // If a filter is to be performed, a cast to this type is necessary. // // Example: diff --git a/internal/templates/filtgen.gotpl b/internal/templates/filtgen.gotpl index 1fc5a8f..644a3d4 100644 --- a/internal/templates/filtgen.gotpl +++ b/internal/templates/filtgen.gotpl @@ -9,7 +9,7 @@ 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: @@ -17,7 +17,7 @@ import ( // {{.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: diff --git a/internal/version.go b/internal/version.go index 2184e5c..9fab763 100644 --- a/internal/version.go +++ b/internal/version.go @@ -4,4 +4,4 @@ Copyright © 2024 - miyamo2 package internal // Version is the version of the filtgen. -const Version = "v0.1.0" +const Version = "v0.1.1"