Re: [go-nuts] How to use `go test`?

2018-01-18 Thread Jan Mercl
On Thu, Jan 18, 2018 at 5:01 PM wrote: > main_test.go:1:1: illegal character U+0023 '#' The message says it all. Go is not an interpreted scripting language supporting #-style comments like bash, Python etc. -- -j -- You received this message because you are subscribed to the Google Grou

[go-nuts] How to use `go test`?

2018-01-18 Thread pengyu . ut
Hi, I would like to use go test. But I am not sure how to use it. Could you anybody provide me with a minimal working example how to use go test? Thanks. $ cat main_test.go #!/usr/bin/env gorun // vim: set noexpandtab tabstop=2: package foo import ( "testing" ) func TestSomething(t *test