web-ridge / gqlgen-sqlboiler

This is a plugin for gqlgen to generate converts + filter queries and resolvers for sqlboiler
MIT License
75 stars 13 forks source link

Sort preloads/other maps to prevent commit clutter when re-generating #20

Closed RichardLindhout closed 4 years ago

RichardLindhout commented 4 years ago

When we re-run the go run convert_plugin.go there is everytime changes since maps are random in golang. That means that there is a lot of diff change while in reality nothing has changed only the order of preloads.

RichardLindhout commented 4 years ago

E.g. only filter.go should be included here in this commit, not the preloads: https://github.com/web-ridge/gqlgen-sqlboiler-examples/commit/04f41c4e34333dbd8b01a5e807dbcfe566387f2a