HasSuffix asserts that the supplied string ends with with substr.
(substr string)
| 88 | |
| 89 | // HasSuffix asserts that the supplied string ends with with substr. |
| 90 | func (o OnString) HasSuffix(substr string) bool { |
| 91 | return o.Compare(o.value, "ends with", substr).Test(strings.HasSuffix(o.value, substr)) |
| 92 | } |