From bf8c8bbe4a00e3384f7a238cb09b74452cddb042 Mon Sep 17 00:00:00 2001 From: Dustin Spicuzza Date: Tue, 28 Sep 2021 15:08:47 -0400 Subject: [PATCH] Add TODO for unsafe.Slice --- unix/sysvshm_unix.go | 1 + 1 file changed, 1 insertion(+) diff --git a/unix/sysvshm_unix.go b/unix/sysvshm_unix.go index 8794ebb2..9c92ffc7 100644 --- a/unix/sysvshm_unix.go +++ b/unix/sysvshm_unix.go @@ -34,6 +34,7 @@ func SysvShmAttach(id int, addr uintptr, flag int) ([]byte, error) { } // Use unsafe to convert addr into a []byte. + // TODO: convert to unsafe.Slice once we can assume Go 1.17 var b []byte hdr := (*unsafeheader.Slice)(unsafe.Pointer(&b)) hdr.Data = unsafe.Pointer(addr)