This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
package goext
|
||||
|
||||
const GoextVersion = "0.0.448"
|
||||
const GoextVersion = "0.0.449"
|
||||
|
||||
const GoextVersionTimestamp = "2024-05-12T16:45:45+0200"
|
||||
const GoextVersionTimestamp = "2024-05-12T16:51:52+0200"
|
||||
|
||||
+1
-1
@@ -95,7 +95,7 @@ func (c *Coll[TData]) WithUnmarshalHook(fn func(d TData) TData) *Coll[TData] {
|
||||
// WithMarshalHook
|
||||
// function that is called for every object before writing to DB
|
||||
func (c *Coll[TData]) WithMarshalHook(fn func(d TData) TData) *Coll[TData] {
|
||||
c.extraModPipeline = append(c.marshalHooks, fn)
|
||||
c.marshalHooks = append(c.marshalHooks, fn)
|
||||
|
||||
return c
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user