update field (#8)
Reviewed-on: #8 Co-authored-by: andrey <andrey@4devs.io> Co-committed-by: andrey <andrey@4devs.io>
This commit was merged in pull request #8.
This commit is contained in:
11
field/log_valuer.go
Normal file
11
field/log_valuer.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package field
|
||||
|
||||
type LogValuer interface {
|
||||
LogValue() any
|
||||
}
|
||||
|
||||
type ClosureFn func() any
|
||||
|
||||
func (v ClosureFn) LogValue() any {
|
||||
return v()
|
||||
}
|
||||
Reference in New Issue
Block a user