glide setup and dependencies addition

This commit is contained in:
Steve Brunton
2017-08-27 23:27:11 -04:00
commit b0e0be5688
74 changed files with 11533 additions and 0 deletions

22
vendor/gopkg.in/routeros.v2/chan_reply.go generated vendored Normal file
View File

@@ -0,0 +1,22 @@
package routeros
import "gopkg.in/routeros.v2/proto"
// chanReply is shared between ListenReply and AsyncReply.
type chanReply struct {
tag string
err error
reC chan *proto.Sentence
}
// Err returns the first error that happened processing sentences with tag.
func (a *chanReply) Err() error {
return a.err
}
func (a *chanReply) close(err error) {
if a.err == nil {
a.err = err
}
close(a.reC)
}