mirror of
https://github.com/golang/sys.git
synced 2026-02-09 12:16:04 +03:00
The Go "os" package already provides bindings for SEEK_CUR, SEEK_SET and SEEK_END. Most operating systems also support SEEK_HOLE and SEEK_DATA, which you can use to skip sparse regions in a file. Let's add bindings, so we can also do this from within Go.
148 KiB
148 KiB