v1.2.0
What's Changed
- Introduced a new
gone.GonerOption
, enabling type-based injection by delegating the task of constructing injected type instances to a Goner that implementsSuck(conf string, v reflect.Value, field reflect.StructField) error
. - Added a helper function for implementing Goner Provider:
func NewProviderPriest[T any, P any](fn func(tagConf string, param P) (T, error)) Priest
. - Provided a strategy configuration solution for the cluster mode in
goner/xorm
. - Improved the
goner/gorm
code and conducted functional tests to support integration with multiple databases.
Full Changelog: v1.1.1...v1.2.0