github.com/Wrdlbrnft/go-gitignore@v0.0.0-20201129201858-74ef740b8b77/tokenset.go (about) 1 package gitignore 2 3 // tokenset represents an ordered list of Tokens 4 type tokenset []*Token 5 6 // String() returns a concatenated string of all runes represented by the 7 // list of tokens. 8 func (t tokenset) String() string { 9 // concatenate the tokens into a single string 10 _rtn := "" 11 for _, _t := range []*Token(t) { 12 _rtn = _rtn + _t.Token() 13 } 14 return _rtn 15 } // String()