You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pass buf.Bytes() as param and append bytes to it in method Encode will never change the underlaid slice of buf, and you never initial the underlaid slice so that it always nil actually.
code
pass
buf.Bytes()
as param and append bytes to it in methodEncode
will never change the underlaid slice ofbuf
, and you never initial the underlaid slice so that it always nil actually.you can try the test code below to check
The text was updated successfully, but these errors were encountered: