Change name of New* functions to *Alloc to mimic Objective-C's
nested alloc/init call idiom.
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
cd := ble.NewBle_delegate().Init()
|
||||
cd := ble.Ble_delegateAlloc().Init()
|
||||
fmt.Println("LE capable:",cd.IsLECapableHardware())
|
||||
time.Sleep(time.Second * 1)
|
||||
fmt.Println("LE capable:",cd.IsLECapableHardware())
|
||||
|
||||
Reference in New Issue
Block a user