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

26
vendor/gopkg.in/routeros.v2/proto/sentence.go generated vendored Normal file
View File

@@ -0,0 +1,26 @@
package proto
import "fmt"
// Sentence is a line read from a RouterOS device.
type Sentence struct {
// Word that begins with !
Word string
Tag string
List []Pair
Map map[string]string
}
type Pair struct {
Key, Value string
}
func NewSentence() *Sentence {
return &Sentence{
Map: make(map[string]string),
}
}
func (sen *Sentence) String() string {
return fmt.Sprintf("%s @%s %#q", sen.Word, sen.Tag, sen.List)
}