The original code is https://play.golang.org/p/CTbhTC50eE It is write to works as:
go run gocat.go Here is how it works at this time. $ go run gocat.go Which file would you like to read?: ~/bob 2016/12/29 17:10:19 my program broken exit status 1 $ go run gocat3.go Which file would you like to read?: /home/aurelien/bob hmm hmm -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.