Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SliceToArray ¶
SliceToArray Converts an bytes slice to an array of size "length" and returns an interface with the result
In Go, arrays have a fixed size that must be known at compile time, which makes converting a slice to an array of variable size directly not possible. However, and using reflection we can create an array with the appropiate size at runtime.
params slice contains the bytes slice length sets the size of the resulting array returns an interface{} with the fixed size array
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.