commit | e66540375e9941f301a0fbd8134a06076bfc873e | [log] [tgz] |
---|---|---|
author | Elias Naur <elias.naur@gmail.com> | Sun Jul 30 12:35:42 2017 +0200 |
committer | Elias Naur <elias.naur@gmail.com> | Fri Aug 11 20:43:43 2017 +0000 |
tree | a6818742a9c081df3004575a529f905cf9f70428 | |
parent | 448c916b90896b38ba453c68282a01caf9203091 [diff] |
bind: generate ObjC initializers For functions on the form New<T>... (...) *T or New<T>... (...) (*T, error) generate corresponding initializers. The name of an initializer is the function name where "New<T>" is replaced by "init". If no functions match for a type *T, generate a default (empty) initializer that returns new(T). The default initializer mirrors the default constructor in Java. Fixes golang/go#20254. Change-Id: I3c317418fa517d3f2de3f67f400867285b11ea4f Reviewed-on: https://go-review.googlesource.com/52012 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
The Go mobile repository holds packages and build tools for using Go on mobile platforms.
Package documentation as a starting point:
The Go Mobile project is experimental. Use this at your own risk. While we are working hard to improve it, neither Google nor the Go team can provide end-user support.
This is early work and installing the build system requires Go 1.5. Follow the instructions on golang.org/wiki/Mobile to install the gomobile command, build the basic and the bind example apps.
Contributions to Go are appreciated. See https://golang.org/doc/contribute.html.