Commits

Fazlul Shahriar  committed d1c74e1

make example compile with latest Go release

  • Participants
  • Parent commits 385d9c9

Comments (0)

Files changed (2)

File examples/Makefile

-include $(GOROOT)/src/Make.$(GOARCH)
+include $(GOROOT)/src/Make.inc
 
 TARG=client
 GOFILES=\

File examples/client.go

 	if err != nil {
 		panic(err)
 	}
+	defer port.Close()
+
 	msg := &plumb.Msg{
 		Src:  "goplumb",
 		Dst:  "edit",
 		Data: []byte("/etc/passwd:9"),
 	}
 	port.Send(msg)
-	port.Close()
 }