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" }