search for: 1b72e77d

Displaying 1 result from an estimated 1 matches for "1b72e77d".

2023 Aug 11
2
[libnbd PATCH] golang: Bump minimum Go version to 1.17
...32 { + /* We require unsafe.Slice(), introduced in 1.17 */ + ret := make([]uint32, cnt) + s := unsafe.Slice(arr, cnt) + for i, item := range s { + ret[i] = uint32(item) + } + return ret +} + func main() { fmt.Println(runtime.Version()) diff --git a/golang/go.mod b/golang/go.mod index fc772840..1b72e77d 100644 --- a/golang/go.mod +++ b/golang/go.mod @@ -1,4 +1,4 @@ module libguestfs.org/libnbd -// First version of golang with working module support. -go 1.13 +// First version of golang with working module support and unsafe.Slice. +go 1.17 -- 2.41.0