Browse Source

fasthttp: move templates to src and use qtc from /home/valyala/work/FrameworkBenchmarks/frameworks/Go/fasthttp-postgresql/bin

Aliaksandr Valialkin 9 years ago
parent
commit
23072aa73d

+ 2 - 2
frameworks/Go/fasthttp-mysql/server.go

@@ -1,4 +1,4 @@
-//go:generate qtc -dir=templates
+//go:generate qtc -dir=src/templates
 package main
 
 import (
@@ -18,7 +18,7 @@ import (
 	"github.com/valyala/fasthttp"
 	"github.com/valyala/fasthttp/reuseport"
 
-	"./templates"
+	"templates"
 )
 
 type JSONResponse struct {

+ 3 - 2
frameworks/Go/fasthttp-mysql/source_code

@@ -1,3 +1,4 @@
 ./fasthttp-mysql/server.go
-./fasthttp-mysql/templates/
-./fasthttp-mysql/templates/fortune.qtpl
+./fasthttp-mysql/src/
+./fasthttp-mysql/src/templates/
+./fasthttp-mysql/src/templates/fortune.qtpl

+ 0 - 0
frameworks/Go/fasthttp-mysql/templates/fortune.qtpl → frameworks/Go/fasthttp-mysql/src/templates/fortune.qtpl


+ 2 - 2
frameworks/Go/fasthttp-postgresql/server.go

@@ -1,4 +1,4 @@
-//go:generate qtc -dir=templates
+//go:generate qtc -dir=src/templates
 package main
 
 import (
@@ -18,7 +18,7 @@ import (
 	"github.com/valyala/fasthttp"
 	"github.com/valyala/fasthttp/reuseport"
 
-	"./templates"
+	"templates"
 )
 
 type JSONResponse struct {

+ 3 - 2
frameworks/Go/fasthttp-postgresql/source_code

@@ -1,3 +1,4 @@
 ./fasthttp-postgresql/server.go
-./fasthttp-postgresql/templates/
-./fasthttp-postgresql/templates/fortune.qtpl
+./fasthttp-postgresql/src/
+./fasthttp-postgresql/src/templates/
+./fasthttp-postgresql/src/templates/fortune.qtpl

+ 0 - 0
frameworks/Go/fasthttp-postgresql/templates/fortune.qtpl → frameworks/Go/fasthttp-postgresql/src/templates/fortune.qtpl


+ 1 - 1
toolset/setup/linux/languages/go.sh

@@ -13,7 +13,7 @@ fw_untar go$VERSION.linux-amd64.tar.gz
 
 echo "export GOROOT=${IROOT}/go" > $IROOT/go.installed
 echo -e "export GOPATH=\$TROOT" >> $IROOT/go.installed
-echo -e "export PATH=\$GOROOT/bin:\$PATH" >> $IROOT/go.installed
+echo -e "export PATH=\$GOROOT/bin:\$GOPATH/bin:\$PATH" >> $IROOT/go.installed
 echo "export GOGC=1000" >> $IROOT/go.installed
 
 source $IROOT/go.installed