I have a question.  I have changed the open goping.go code to return error 
from functions. 

The following function is implemented in a .goping.go file.

func ping(config *Config, address, name string, pattern *regexp.Regexp) 
error {  }

Another function shown below, in the same .go file, calls 'go ping()'.  As 
one can see above, the ping function returns an error.  How do I change the 
'go ping()' code below to grab the error returned from calling ping()?  I 
could also use a URL to where a description exists for using 'go 
function_call' inside a Go program.

func ping_main(address string) error {
    go ping(config, address, "DstIP", LATENCY_PATTERN)
}

Best,

Hemant

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