gitlab.com/evatix-go/core@v1.3.55/errcore/ExpectingFuture.go (about)

     1  package errcore
     2  
     3  // ExpectingFuture
     4  //
     5  // returns ExpectingRecord which will print
     6  //      "%s - expecting (type:[%T]) : [\"%v\"], but received or actual (type:[%T]) : [\"%v\"]"
     7  func ExpectingFuture(title string, wasExpecting interface{}) *ExpectingRecord {
     8  	return &ExpectingRecord{
     9  		ExpectingTitle: title,
    10  		WasExpecting:   wasExpecting,
    11  	}
    12  }