syscall.Mmap() returns a slice, why not just use the slice?
You could use a int64 as an index and pretend it is a pointer.
Yes, actually it is what I want to do. My question I do not know how to set the mmap's arguments, since the first argument need to be a file descriptor ..
Pass -1 as the file descriptor. Note that mmap is not portable but
that will work on most systems. See "man mmap" for details.
Ian