1
0
forked from ALHP/ALHP.GO

regen ent

This commit is contained in:
2022-10-28 18:14:20 +02:00
parent 186e1a66c3
commit 6895d66651
8 changed files with 70 additions and 67 deletions

View File

@@ -17,7 +17,7 @@ type config struct {
// debug enable a debug logging.
debug bool
// log used for logging on debug mode.
log func(...interface{})
log func(...any)
// hooks to execute on mutations.
hooks *hooks
}
@@ -45,7 +45,7 @@ func Debug() Option {
}
// Log sets the logging function for debug mode.
func Log(fn func(...interface{})) Option {
func Log(fn func(...any)) Option {
return func(c *config) {
c.log = fn
}