method
Value.StringValue
Read the string payload when this value has string kind.
Example
title, ok := ctx.Data["title"].StringValue()
if !ok {
return nil
}Returns
The string and true, or an empty string and false for another kind.
(string, bool)Full signature
func (value Value) StringValue() (
string,
bool,
)Related types
ValueAn immutable scalar, object, list, or populated document value.