Golang runtime (#125)

Minimal golang runtime.  

Functions are built as Go plugins, and the plugin is uploaded to fission.

See `environments/go/README.md` for instructions and `examples/go` for a usage example.

For now, we're re-using the 'code' field of the function to store the binary plugin. With v2 environments, this will be stored separately as a binary package.
This commit is contained in:
Valentin Tjoncke
2017-03-21 17:13:29 -07:00
committed by Soam Vasani
parent a3f8016442
commit 1665235c14
10 changed files with 193 additions and 5 deletions
+4 -1
View File
@@ -74,7 +74,10 @@ func fnCreate(c *cli.Context) error {
fileName := c.String("code")
if len(fileName) == 0 {
fatal("Need --code argument.")
fileName = c.String("package")
if len(fileName) == 0 {
fatal("Need --code or --package argument.")
}
}
code := fnFetchCode(fileName)