From 2187ba67a244c1c32f53bf88876e766bbbbcd5e6 Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Fri, 31 Oct 2014 12:37:48 -0700 Subject: [PATCH] update readme for new syntax --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d37fa9a..2f4c072 100644 --- a/README.md +++ b/README.md @@ -43,8 +43,8 @@ import ( ) func main() { - mybridge := &netlink.Link{Name: "mybridge", Type: "bridge"} - netlink, _ := netlink.LinkAdd(mybridge) + mybridge := &netlink.Bridge{netlink.LinkAttrs{Name: "foo"}} + _ := netlink.LinkAdd(mybridge) eth1, _ := netlink.LinkByName("eth1") netlink.LinkSetMaster(eth1, mybridge) }