Grokking Advanced Go
0% completed
The unsafe Package
The package unsafe comes with an unusual list of promises and non-promises, and it is worth reading them before any of its functions.
- Promised: six patterns of use, listed in the documentation of
unsafe.Pointer, are valid. Even those patterns, it says, "come with important caveats." - Not promised: code outside those patterns "is likely to be invalid today or to become invalid in the future."
- Not promised: compatibility. The package documentation states that packages importing
unsafe"may be non-portable and are not protected by the Go 1 compatibility guidelines."
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%