good morning!!!!

Skip to content
Snippets Groups Projects
Commit 7f94bd09 authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Return a single byte if byte get called

parent 2fbcfd88
Branches
Tags
No related merge requests found
...@@ -114,6 +114,8 @@ func (val *Value) Str() string { ...@@ -114,6 +114,8 @@ func (val *Value) Str() string {
func (val *Value) Bytes() []byte { func (val *Value) Bytes() []byte {
if a, ok := val.Val.([]byte); ok { if a, ok := val.Val.([]byte); ok {
return a return a
} else if s, ok := val.Val.(byte); ok {
return []byte{s}
} }
return []byte{} return []byte{}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment