瀏覽代碼

Fixed the Go frameworks

msmith-techempower 11 年之前
父節點
當前提交
6bcff9bcc8
共有 4 個文件被更改,包括 10 次插入5 次删除
  1. 4 1
      frameworks/Go/beego/setup.sh
  2. 1 3
      frameworks/Go/gin/install.sh
  3. 3 0
      frameworks/Go/gin/setup.sh
  4. 2 1
      frameworks/Go/webgo/setup.sh

+ 4 - 1
frameworks/Go/beego/setup.sh

@@ -3,5 +3,8 @@
 # Where to find the go executable
 # Where to find the go executable
 export PATH="$GOROOT/bin:$PATH"
 export PATH="$GOROOT/bin:$PATH"
 
 
-go get ./...
+
+go get github.com/astaxie/beego
+go get github.com/go-sql-driver/mysql
+
 go run src/hello/hello.go &
 go run src/hello/hello.go &

+ 1 - 3
frameworks/Go/gin/install.sh

@@ -1,5 +1,3 @@
 #!/bin/bash
 #!/bin/bash
 
 
-fw_depends go
-go get github.com/gin-gonic/gin
-go get github.com/go-sql-driver/mysql
+fw_depends go

+ 3 - 0
frameworks/Go/gin/setup.sh

@@ -3,4 +3,7 @@
 # Where to find the go executable
 # Where to find the go executable
 export PATH="$GOROOT/bin:$PATH"
 export PATH="$GOROOT/bin:$PATH"
 
 
+go get github.com/gin-gonic/gin
+go get github.com/go-sql-driver/mysql
+
 go run hello.go &
 go run hello.go &

+ 2 - 1
frameworks/Go/webgo/setup.sh

@@ -3,5 +3,6 @@
 # Where to find the go executable
 # Where to find the go executable
 export PATH="$GOROOT/bin:$PATH"
 export PATH="$GOROOT/bin:$PATH"
 
 
-go get ./...
+go get github.com/hoisie/web
+
 go run src/hello/hello.go &
 go run src/hello/hello.go &