create audit module

This commit is contained in:
yuli
2024-12-28 21:39:51 +02:00
parent 4c62cad36b
commit 6e1dbf4f14
27 changed files with 357 additions and 356 deletions

View File

@@ -5,7 +5,6 @@ import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"strconv"
@@ -51,7 +50,7 @@ func loadUserSchema(cfg Config, confFile *string) error {
if os.IsNotExist(err) {
return err
}
schemaData, err := ioutil.ReadFile(fileSchema)
schemaData, err := os.ReadFile(fileSchema)
if err != nil {
return err
}