Skip to content
Discussion options

You must be logged in to vote

Slices are not fixed-size types since their length varies at runtime. Same goes for int and uint since their sizes are architecture-specific. In this case, it sounds like you want to use an array, not a slice: [16]byte. Or, when doing batch operations: [][16]byte.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by matpuk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants