I am a developer and an entrepreneur. I have twenty plus years of experience in the field of computing. My experience spans many platforms, programming languages, and I am an advocate of the open-source world. Uniquely positioned in life, I search for application and service ideas that can be converted into profitable or open-source products. Most important to me is positive energy and accomplishment.
I'm digging Golang more and more each day and the godoc tool is proving quite useful. If you plan to release your code into the wild and have it show up in the public godoc at: http://godoc.org/, then, it is probably a good idea to attempt to provide documentation that is as complete as possible.
So, I've been moving forward with Golang lately and really like it a lot. Today, I was wondering what order tests are run and decided to find out a little. Basically, I created a directory containing a few test files.
I couldn't find this answer in the officail documentation. If it exists, then, it eluded me.
Reading a file line by line in Golang is pretty easy. Have a look at the following example:
This is an update to my previous article in this series. This article will be to the point For more details, see my previous article.
Have a code base or app with sub-directories / sub-packages? Want to run all of the tests all at once?