commit | a103499a63f93b4e910f22d3a15730aaf9528d5d | [log] [tgz] |
---|---|---|
author | Nigel Tao <nigeltao@golang.org> | Thu Jan 07 16:28:21 2016 +1100 |
committer | Nigel Tao <nigeltao@golang.org> | Thu Jan 07 22:44:33 2016 +0000 |
tree | 7e5a03a3cb7833e7c6af13d04c931795c94db9e8 | |
parent | cc29d844e96c14e957122bb1cd28b3df91704a71 [diff] |
event/size: make methods take values, not pointers. This makes the following program valid: ---- package main import ( "fmt" "golang.org/x/mobile/event/size" ) func foo() size.Event { return size.Event{} } func main() { fmt.Println(foo().Bounds()) } ---- Previously, you would get: ./main.go:12: cannot call pointer method on foo() ./main.go:12: cannot take the address of foo() Change-Id: I2801d18a04d56d1c7496cb008531d078490ccf86 Reviewed-on: https://go-review.googlesource.com/18356 Reviewed-by: David Crawshaw <crawshaw@golang.org>
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.