Feat: embed static files

This commit is contained in:
HFO4
2020-03-09 14:07:36 +08:00
parent 1d0d6e5f31
commit 30311d181d
9 changed files with 80 additions and 7 deletions

View File

@@ -3,7 +3,7 @@ package conf
import (
"github.com/HFO4/cloudreve/pkg/util"
"github.com/go-ini/ini"
"gopkg.in/go-playground/validator.v8"
"gopkg.in/go-playground/validator.v9"
)
// database 数据库
@@ -135,7 +135,7 @@ func mapSection(section string, confStruct interface{}) error {
}
// 验证合法性
validate := validator.New(&validator.Config{TagName: "validate"})
validate := validator.New()
err = validate.Struct(confStruct)
if err != nil {
return err