On Saturday, November 16, 2019 at 4:32:32 AM UTC+1, Gert wrote:

> Is it possible to write this without creating a separate var b64 first? 
> Basically just write it in one line?
>
> var b64 [64]byte // 64 zero bytes
> if bytes.Equal(b64[:], x) {}
>
>
if bytes.Equal(make([]byte, 64), x) {}

answer from slack (Dorian Thiessen)

 

-- 
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/be6d79d2-b012-43e9-b967-37e919e6f53b%40googlegroups.com.

Reply via email to