The plotIP.go utility revisited

As promised in a previous section of this chapter, this section will create two separate utilities, which when combined will implement the functionality of plotIP.go. Personally, I prefer to have two separate utilities and combine them when needed than having just one utility that does two or more tasks.

The names of the two utilities will be extractData.go and plotData.go. As you can easily understand, only the second utility would have to be able to get input from standard input as long as the first utility prints its output on standard output either using os.Stdout, which is the correct way, or using fmt.Println(), which usually does the job.

I think that I should now tell you my little secret: I created ...

Get Go Systems Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.