You have:
fmt.Println("AFTER:", newMessage.Biawaks == nil, cap(message.Biawaks)) 
Did you mean:
fmt.Println("AFTER:", newMessage.Biawaks == nil, cap( newMessage.Biawaks))

If so, then 
On Monday, March 20, 2023 at 11:44:54 AM UTC-4 febriananda pramudita wrote:

> I was playing with protobuf marshaller recently and found this behavior
>
> https://gist.github.com/FwP-pintu/448f8ecddf27987a7e5b8a103eda12cb
>
> Is behavior: "nil slice with more than 0 capacity" is intended? Thank you.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/9c65b63e-1678-4646-a2ad-233367cdbe85n%40googlegroups.com.

Reply via email to