Raw returns underlying value attached to String. This is the value originally passed to NewString. Example: str := NewString(t, "Hello") assert.Equal(t, "Hello", str.Raw())
()
| 53 | // str := NewString(t, "Hello") |
| 54 | // assert.Equal(t, "Hello", str.Raw()) |
| 55 | func (s *String) Raw() string { |
| 56 | return s.value |
| 57 | } |
| 58 | |
| 59 | // Decode unmarshals the underlying value attached to the String to a target variable. |
| 60 | // target should be one of these: |
no outgoing calls