I've found the following notation size *= b - a
. I've inspected it with reflect but it seems that size is just a float64 (a,b are floats too)so my question is what is *
for?I expected it to dereference a pointer (size) but it doesn't seem to be the case.
I don't know go
, but isn't that just equal to a regular
size = size * (b-a)
*=
is a short hand operator in go. Above line size *= b - a
is simply equivalent to:
size = size * (b - a)
Check out Operators and Delimiters here: https://golang.org/ref/spec