Skip to content
Snippets Groups Projects
Commit 7d8070e0 authored by Md. Alim Ul Karim's avatar Md. Alim Ul Karim :speech_balloon:
Browse files

hotfix/v0.5.2

hotfix/v0.5.2
parent 39a33060
Branches hotfix/v0.5.2
Tags v0.5.2
No related merge requests found
package msgtype
import "fmt"
import (
"errors"
"fmt"
)
type ExpectingRecord struct {
ExpectingTitle string
......@@ -19,3 +22,12 @@ func (receiver *ExpectingRecord) Message(actual interface{}) string {
receiver.WasExpecting, receiver.WasExpecting,
actual, actual)
}
// Error
// Expecting
//
// returns
// "%s - expecting (type:[%T]) : [\"%v\"], but received or actual (type:[%T]) : [\"%v\"]"
func (receiver *ExpectingRecord) Error(actual interface{}) error {
return errors.New(receiver.Message(actual))
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment