Commit b7a636b8 authored by obscuren's avatar obscuren

Values should accept bytes as valid string output

parent e5b97fe0
......@@ -98,6 +98,8 @@ func (val *Value) Str() string {
return string(a)
} else if a, ok := val.Val.(string); ok {
return a
} else if a, ok := val.Val.(byte); ok {
return string(a)
}
return ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment