github.com/boyter/gocodewalker@v1.3.2/go-gitignore/tokenset.go (about)

     1  // SPDX-License-Identifier: MIT
     2  
     3  package gitignore
     4  
     5  // tokenset represents an ordered list of Tokens
     6  type tokenset []*Token
     7  
     8  // String() returns a concatenated string of all runes represented by the
     9  // list of tokens.
    10  func (t tokenset) String() string {
    11  	// concatenate the tokens into a single string
    12  	_rtn := ""
    13  	for _, _t := range []*Token(t) {
    14  		_rtn = _rtn + _t.Token()
    15  	}
    16  	return _rtn
    17  } // String()