init: 0.0.6

next: upload
This commit is contained in:
loveuer
2025-04-28 14:59:22 +08:00
parent 4801b3de08
commit 0cfd617922
19 changed files with 713 additions and 355 deletions

View File

@ -1,8 +1,9 @@
package opt
type config struct {
Debug bool
Address string
Debug bool
Address string
DataPath string
}
var (

15
internal/opt/var.go Normal file
View File

@ -0,0 +1,15 @@
package opt
import "path/filepath"
const (
Meta = ".meta."
)
func FilePath(code string) string {
return filepath.Join(Cfg.DataPath, code)
}
func MetaPath(code string) string {
return filepath.Join(Cfg.DataPath, Meta+code)
}