Changing function to be a receiver instead of a pointer receiver. This will allow Marshal of any enigma.Float64 or *enigma.Float64 to be valid.
I did not update the Unmarshal function however, since it doesn't make sense to do so. If it is a normal receiver, we cannot modify anything outside of the function scope.
Changing function to be a receiver instead of a pointer receiver. This will allow Marshal of any
enigma.Float64
or*enigma.Float64
to be valid.I did not update the Unmarshal function however, since it doesn't make sense to do so. If it is a normal receiver, we cannot modify anything outside of the function scope.