muka / go-bluetooth

Golang bluetooth client based on bluez DBus interfaces
Apache License 2.0
653 stars 123 forks source link

Revert back to reflect.Ptr #182

Open amrbekhit opened 1 year ago

amrbekhit commented 1 year ago

This allows the module to be compiled using Go 1.14, as specified in the go.mod file.

reflect.Ptr was renamed to reflect.Pointer in Go 1.18 (see https://tip.golang.org/doc/go1.18). The code uses reflect.Pointer despite the go.mod file specifying a minimum Go version of 1.14. So either the go.mod file needs to be updated or the code should revert back to reflect.Ptr for as long as Go 1.14 is considered the minimum required version.