From f6cef970a44d8fe96b1ef3af246a863f919f0d7b Mon Sep 17 00:00:00 2001 From: Jeff Date: Thu, 11 Dec 2014 12:44:49 -0700 Subject: [PATCH] update internetgateway1 example to build on go1.4 the Service field on the ServiceClient is already *goupnp.Service, so taking the address makes it a **goupnp.Service which no longer will dereference to call methods on type *goupnp.Service like String and RequestSCDP. --- cmd/example_internetgateway1/example_internetgateway1.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/example_internetgateway1/example_internetgateway1.go b/cmd/example_internetgateway1/example_internetgateway1.go index f166e12..29e8adc 100644 --- a/cmd/example_internetgateway1/example_internetgateway1.go +++ b/cmd/example_internetgateway1/example_internetgateway1.go @@ -21,7 +21,7 @@ func main() { for _, c := range clients { dev := &c.ServiceClient.RootDevice.Device - srv := &c.ServiceClient.Service + srv := c.ServiceClient.Service fmt.Println(dev.FriendlyName, " :: ", srv.String()) scpd, err := srv.RequestSCDP() if err != nil {