On Thursday, 26 October 2017 09:18:07 UTC-4, 28911...@gmail.com wrote: > > I try to do tis:go run chapter11.2.go 127.0.0.1 and the program runs > sucessfully.Thank you so much.But I don't know why. Other program don't > nedd to add 127.0.0,1,.What's the principle of it? >
The program you are running expects an IP address on the command line because its purpose is to examine a given IP address and return information about it. It seems you are running programs for which you have little understanding, leading you to incorrectly believe there is something wrong with Go and/or the program itself. This is probably not the best way to learn Go. Try staring with the Go Tour (https://tour.golang.org), and read some of the other excellent documentation at golang.org. -- Kevin Powick PS. If you find SublimeText useful, you should support the author by registering it. This helps allow continued development. -- 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.