Add anonymise database task (#3186)

This commit is contained in:
WithoutPants
2022-12-23 09:15:27 +11:00
committed by GitHub
parent 0b4b100ecc
commit 9351a0b2a4
13 changed files with 1078 additions and 8 deletions

12
pkg/utils/func.go Normal file
View File

@@ -0,0 +1,12 @@
package utils
// Do executes each function in the slice in order. If any function returns an error, it is returned immediately.
func Do(fn []func() error) error {
for _, f := range fn {
if err := f(); err != nil {
return err
}
}
return nil
}