fusenapi/server/backend/internal/logic/init.go
2023-06-28 19:32:41 +08:00

18 lines
232 B
Go

package logic
import (
"os"
"regexp"
)
var templatePath string
func init() {
d, err := os.Getwd()
if err != nil {
panic(err)
}
templatePath = regexp.MustCompile(".+fusenapi/server").FindString(d) + "/backend/template"
}