You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I thought the same thing. So I forked this repo, downloaded it locally, relearned golang, installed golang 1.11.1 then build the project and ran the tests.
And here's what I got.
~/go/src/github.com/LarryBattle/helloworld (master)$ go run main.go
Hello World!!~/go/src/github.com/LarryBattle/helloworld (master)$ go test -cover
PASS
coverage: 50.0% of statements
ok github.com/LarryBattle/helloworld 0.185s
you are calling in main file like: fmt.Println(helloworld())
in test file also you are calling like helloworld()
it will fail.
as helloworld function is not exported. Test file will unable to call because it is not exported.
in both file, call as Helloworld().
The text was updated successfully, but these errors were encountered: