Add go environment vendor directory support (#781)

* Add go environment vendor directory support
* Use symbolink instead of copying files to gopath
* Add go vendor example package & test
This commit is contained in:
Ta-Ching Chen
2018-07-13 13:16:22 +08:00
committed by GitHub
parent 3707b95edb
commit 425e447e5c
5 changed files with 56 additions and 16 deletions
+12
View File
@@ -0,0 +1,12 @@
package main
import (
"go/vendordir/test"
"net/http"
)
// Handler is the entry point for this fission function
func Handler(w http.ResponseWriter, r *http.Request) {
msg := test.Test()
w.Write([]byte(msg))
}
@@ -0,0 +1,5 @@
package test
func Test() string {
return "vendor hello world"
}