diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-03-07 22:40:22 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-10 15:51:55 +0000 |
commit | 760e81678cec80dcdaab12c2a0a0148e3e0ba275 (patch) | |
tree | 6b587a2e9bd13c68788c1ff20df54db7e2f38c53 /meta/recipes-extended/go-examples/files/helloworld.go | |
parent | 0efe58df2e5389f86dfbd53f90afc8f2970def7d (diff) | |
download | poky-760e81678cec80dcdaab12c2a0a0148e3e0ba275.tar.gz |
go: Add recipes for golang compilers and tools
* This is converging the recipes for go from
meta-virtualization and oe-meta-go
* Add recipes for go 1.7
* go.bbclass is added to ease out writing
recipes for go packages
* go-examples: Add an example, helloworld written in go
This should serve as temlate for writing go recipes
* Disable for musl, at least for now
* Disable for x32/ppc32 which is not supported
(From OE-Core rev: 78615e9260fb5d6569de4883521b049717fa4340)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/go-examples/files/helloworld.go')
-rw-r--r-- | meta/recipes-extended/go-examples/files/helloworld.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/recipes-extended/go-examples/files/helloworld.go b/meta/recipes-extended/go-examples/files/helloworld.go new file mode 100644 index 0000000000..0253c40411 --- /dev/null +++ b/meta/recipes-extended/go-examples/files/helloworld.go | |||
@@ -0,0 +1,10 @@ | |||
1 | // You can edit this code! | ||
2 | // Click here and start typing. | ||
3 | // taken from https://golang.org/ | ||
4 | package main | ||
5 | |||
6 | import "fmt" | ||
7 | |||
8 | func main() { | ||
9 | fmt.Println("Hello, 世界") | ||
10 | } | ||