hello world with a Makefile and a test

1,087 views
Skip to first unread message

Brian Slesinsky

unread,
Nov 16, 2009, 4:21:47 AM11/16/09
to golan...@googlegroups.com
I've attached a version of "hello world" that shows how to write a
Makefile and a test that works with gotest. Hopefully others will find
it a useful starting point.

- Brian
hello.zip

Ashok Gautham

unread,
Nov 16, 2009, 5:35:45 AM11/16/09
to Brian Slesinsky, golang-nuts
It is really well commented. Good job :)

---
Ashok `ScriptDevil` Gautham

James Hillyerd

unread,
Nov 17, 2009, 11:59:13 PM11/17/09
to golang-nuts
Very helpful! Something like this needs to be included in Go, since
it's hard to figure out how to build a command and have unit testing.

The only thing that doesn't seem to work is "make test"

-james

Walter

unread,
Nov 18, 2009, 2:37:41 PM11/18/09
to golang-nuts
Just type 'gotest'. It will find and execute all tests.
- Walter

On 18 nov, 05:59, James Hillyerd <yimmy...@gmail.com> wrote:
> On Nov 16, 1:21 am, Brian Slesinsky <bslesin...@gmail.com> wrote:
>
> > I've attached a version of "hello world" that shows how to write a
> > Makefile and atestthat works with gotest. Hopefully others will find
Reply all
Reply to author
Forward
0 new messages