From 98e6b3ac2672354f72d500e74c8f52106635b39f Mon Sep 17 00:00:00 2001 From: Andres Uribe Gonzalez Date: Fri, 9 Dec 2022 14:58:12 -0500 Subject: [PATCH] docs --- pkg/storage/bolt.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/storage/bolt.go b/pkg/storage/bolt.go index ed7ec863b..827b8faa3 100644 --- a/pkg/storage/bolt.go +++ b/pkg/storage/bolt.go @@ -148,6 +148,8 @@ type UpdaterWithMap struct { Values map[string]any } +// Validate is a default implementation for UpdaterWithMap which does no validation. Users can pass embed UpdaterWithMap +// into a custom struct and redefine this method in order to have custom logic. func (u UpdaterWithMap) Validate(v []byte) error { return nil }