[Container-tools] Go newbie
jesus m. rodriguez
jesusr at redhat.com
Fri Jul 7 13:37:04 UTC 2017
On Fri, 2017-07-07 at 09:13 -0400, jesus m. rodriguez wrote:
> On Fri, 2017-07-07 at 04:33 -0400, Burr Sutter wrote:
> > I would like to add a helloworld Go REST endpoint to my mix of
> > demos
>
> [snip]
>
> >
> > I even have Node.js (needs work to make it match)
> > https://github.com/burrsutter/kube4docker/blob/master/node-demo/hel
> > lo
> > -http.js
> >
> > and I can wrap them easily up in Docker and throw then into Kube
> > but I thought it would be fun to have a Go example - anybody have a
> > super
> > simple Go REST endpoint and a Dockerfile?
> >
>
> Burr,
>
> I can cut down our old server to be a single example endpoint for
> you.
>
> https://github.com/fusor/cap-server/blob/master/main.go
>
> jesus
I'll add a Dockerfile file for you. But here's a simple go example.
https://github.com/jmrodri/go-demo/blob/master/main.go
jesus
--
jesus m. rodriguez | jesusr at redhat.com
principal software engineer | irc: zeus
red hat systems management | 919.754.4413 (w)
rhce # 805008586930012 |
+---------------------------------------------+
| "Those who cannot remember the past |
| are condemned to repeat it." |
| -- George Santayana |
+---------------------------------------------+
More information about the Container-tools
mailing list