You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Go 1.17 adds a new function unsafe.Slice. Currently, WKB marshalling/unmarshalling use unsafe in a few ways that are legal, but can be make safer and less error prone with unsafe.Slice.
Go 1.17 adds a new function
unsafe.Slice
. Currently, WKB marshalling/unmarshalling useunsafe
in a few ways that are legal, but can be make safer and less error prone withunsafe.Slice
.E.g. rather than having the following code:
We can do something like this instead (untested):
There may be a few other places in WKB marshalling/unmarshalling that we can cleanup using the new
unsafe
functions in Go 1.17.The text was updated successfully, but these errors were encountered: