Since there isn't a way to pass pointers into web assembly. we need to first copy our struct into wasm. and then allocate a slice of bytes, copy the struct from web assembly memory into Go memory. and then convert that to a struct.
I could implement the use of sync.Pool but that's a bandaid fix. It should be simple to convert the whole raylib shapes module into Go. In fact, the desktop bindings already do this for the camera module.
Since there isn't a way to pass pointers into web assembly. we need to first copy our struct into wasm. and then allocate a slice of bytes, copy the struct from web assembly memory into Go memory. and then convert that to a struct.
I could implement the use of sync.Pool but that's a bandaid fix. It should be simple to convert the whole raylib shapes module into Go. In fact, the desktop bindings already do this for the camera module.