mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-24 01:08:31 +02:00
replace all schema check with go-playground/validator/v10
This commit is contained in:
@@ -27,6 +27,9 @@ var (
|
||||
)
|
||||
|
||||
func NewConfig(cfg *types.AutoCertConfig) *Config {
|
||||
if cfg == nil {
|
||||
cfg = new(types.AutoCertConfig)
|
||||
}
|
||||
if cfg.CertPath == "" {
|
||||
cfg.CertPath = CertFileDefault
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user