NewStringValue creates a new Value with a string value.
(x string)
| 30 | |
| 31 | // NewStringValue creates a new Value with a string value. |
| 32 | func NewStringValue(x string) *Value { |
| 33 | res := newPtr() |
| 34 | res.Elem().Set(reflect.ValueOf(x)) |
| 35 | return NewValue(res) |
| 36 | } |
| 37 | |
| 38 | // IsString returns true if the value is a string. |
| 39 | func (v *Value) IsString() bool { |