Initial commit

This commit is contained in:
Yuzuki616
2024-09-12 06:04:32 +09:00
commit 3f58fa7f0d
31 changed files with 2814 additions and 0 deletions

19
conf/log.go Normal file
View File

@@ -0,0 +1,19 @@
package conf
type Log struct {
Level string `json:"Level,omitempty"`
Output string `json:"Output,omitempty"`
MaxBackups int `json:"MaxBackups,omitempty"`
MaxSize int `json:"MaxSize,omitempty"`
MaxAge int `json:"MaxAge,omitempty"`
}
func newLog() Log {
return Log{
Level: "info",
Output: "",
MaxBackups: 3,
MaxSize: 100,
MaxAge: 28,
}
}