Starting on some examples to use with function tool.

This commit is contained in:
Travis Reeder
2016-07-17 21:24:50 -07:00
parent 313f56457a
commit a20ad9f4e1
7 changed files with 40 additions and 15 deletions

1
tool/examples/hello/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/hello

View File

@@ -0,0 +1,7 @@
FROM iron/go:dev
ADD . /go/src/github.com/treeder/hello
WORKDIR /go/src/github.com/treeder/hello
RUN go build github.com/treeder/hello
ENTRYPOINT ["/go/src/github.com/treeder/hello/hello"]

View File

@@ -0,0 +1 @@
0.0.1

View File

@@ -0,0 +1,10 @@
package main
import (
"fmt"
"os"
)
func main() {
fmt.Printf("Hello %v!\n", os.Getenv("PAYLOAD"))
}