fix windows createapp

This commit is contained in:
astaxie 2013-06-26 10:49:59 +08:00
parent 19a7fc4612
commit 354ef35f16
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ func createapp(cmd *Command, args []string) {
writetofile(path.Join(apppath, "views", "index.tpl"), indextpl)
fmt.Println("create main.go:", path.Join(apppath, "main.go"))
writetofile(path.Join(apppath, "main.go"), strings.Replace(maingo, "{{.Appname}}", strings.TrimPrefix(appsrcpath, "/"), -1))
writetofile(path.Join(apppath, "main.go"), strings.Replace(maingo, "{{.Appname}}", strings.TrimPrefix(strings.Replace(appsrcpath, "\\", "/", -1), "/"), -1))
}
var appconf = `