Skip to content

Commit

Permalink
fix: add example
Browse files Browse the repository at this point in the history
  • Loading branch information
snamiki1212 committed Sep 19, 2024
1 parent 30c64bc commit 7f985bf
Show file tree
Hide file tree
Showing 2 changed files with 213 additions and 0 deletions.
3 changes: 3 additions & 0 deletions example/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,8 @@ type UserList []User
//go:generate go run ../main.go --entity=User --slice=UserExclude --input=user.go --output=users_exclude_gen.go --exclude=Filter,KeyBy,GroupBy,FilterReject,Find
type UserExclude []User

//go:generate go run ../main.go --entity=User --slice=UserInclude --input=user.go --output=users_include_gen.go --include=Filter$,FilterBy*,Map,Key
type UserInclude []User

//go:generate go run ../main.go --entity=User --slice=UserRename --input=user.go --output=users_rename_gen.go --rename=Map:Loop --rename=Filter:LoFilter --rename=KeyBy:LoKeyBy
type UserRename []User
210 changes: 210 additions & 0 deletions example/users_include_gen.go

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

0 comments on commit 7f985bf

Please sign in to comment.