`sizeBytes := int64(size) << 20` is more idiomatic and quite common in Go code for MB.