github.com/lulzWill/go-agent@v2.1.2+incompatible/internal/cat/errors.go (about)

     1  package cat
     2  
     3  import (
     4  	"fmt"
     5  )
     6  
     7  type errUnexpectedArraySize struct {
     8  	label    string
     9  	expected int
    10  	actual   int
    11  }
    12  
    13  func (e errUnexpectedArraySize) Error() string {
    14  	return fmt.Sprintf("%s: expected %d; got %d", e.label, e.expected, e.actual)
    15  }