From e4aba3430cd7360a45a596da8eacff13abb8ae2d Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Mon, 24 Nov 2014 11:28:51 -0800 Subject: [PATCH] Update README --- README.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index d9550fd..80f3d90 100644 --- a/README.md +++ b/README.md @@ -13,13 +13,8 @@ Using the library is very simple, here is an example of publishing a service ent // Setup our service export host, _ := os.Hostname() - service := &mdns.MDNSService{ - Instance: host, - Service: "_foobar._tcp", - Port: 8000, - Info: "My awesome service", - } - service.Init() + info := []string{"My awesome service"}, + service, _ := NewMDNSService(host, "_foobar._tcp", "", "", 8000, nil, info) // Create the mDNS server, defer shutdown server, _ := mdns.NewServer(&mdns.Config{Zone: service})