chore: init monorepo

This commit is contained in:
2025-06-21 12:42:09 +03:00
commit 1874ae3ac1
103 changed files with 23946 additions and 0 deletions
@@ -0,0 +1,25 @@
package config
import (
"errors"
"os"
)
type Config struct {
BaseDir string
DBPath string
}
func Load() (*Config, error) {
dir := os.Getenv("BASE_PATH")
db := os.Getenv("DB_LINK")
if dir == "" || db == "" {
return nil, errors.New("must set BASE_PATH and DB_LINK in env")
}
return &Config{
BaseDir: dir,
DBPath: db,
}, nil
}