fusenapi/server/backend/internal/logic/init.go

18 lines
232 B
Go
Raw Normal View History

2023-06-28 11:32:41 +00:00
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"
}