gitlab.com/evatix-go/core@v1.3.55/errcore/Expecting.go (about) 1 package errcore 2 3 import ( 4 "fmt" 5 ) 6 7 // Expecting 8 // 9 // returns 10 // "%s - expecting (type:[%T]) : [\"%v\"], but received or actual (type:[%T]) : [\"%v\"]" 11 func Expecting(title, wasExpecting, actual interface{}) string { 12 return fmt.Sprintf( 13 expectingMessageFormat, 14 title, 15 wasExpecting, wasExpecting, 16 actual, actual) 17 }