Skip to content

Commit 09ac502

Browse files
committed
Implement the hello-world example in go
[refs #61aa1809f705]
1 parent 9757e4a commit 09ac502

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM golang:1.9.2-alpine
2+
3+
WORKDIR /go/src/app
4+
COPY hello-world.go .
5+
6+
RUN go build hello-world.go
7+
8+
CMD ["./hello-world"]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package main
2+
3+
import "fmt"
4+
5+
func main() {
6+
fmt.Println("Hello World!")
7+
}

0 commit comments

Comments
 (0)