string.go 189 B

12345678910
  1. package compare
  2. import "v2ray.com/core/common/errors"
  3. func StringEqualWithDetail(a string, b string) error {
  4. if a != b {
  5. return errors.New("Got ", b, " but want ", a)
  6. }
  7. return nil
  8. }