Change name of New* functions to *Alloc to mimic Objective-C's

nested alloc/init call idiom.
This commit is contained in:
gmp
2019-05-04 23:32:57 -04:00
parent eced251710
commit 717c7e76fe
4 changed files with 4 additions and 13 deletions
+1 -1
View File
@@ -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())