You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
286 B

package main
import (
"fmt"
"net"
"os"
)
func main() {
ns, err := net.LookupHost("productService.service.consul")
if err != nil {
fmt.Fprintf(os.Stderr, "Err: %s", err.Error())
return
}
for _, n := range ns {
fmt.Fprintf(os.Stdout, "--%s\n", n)
}
//net.LookupHost()
}