Based on Jan's reply, https://play.golang.org/p/-7NUaJwoOf is a little more
safe.

On Thu, Dec 29, 2016 at 8:13 AM Aurélien Desbrières <
aurelien.desbrie...@gmail.com> wrote:

> 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.
>

-- 
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.

Reply via email to