18 lines
232 B
Go
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"
|
|
}
|