INNER CODE UNIT · Go
NewDefault
depado/goploader · server/conf/conf.go:76
func NewDefault() Conf {
return Conf{
UploadDir: "up/",
DB: "goploader.db",
Host: "",
Port: 8080,
UniURILength: 10,
SizeLimit: 20,
ViewLimit: 5,
DiskQuota: 0,
KeyLength: 16,
LogLevel: "info",
}
}
// Validate validates that an unparsed configuration is valid.
func (c *Conf) Validate() map[string]string {
errors := make(map[string]string)