Editing GoLang
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
- | This is a small Wiki page about the | + | = golang = |
+ | |||
+ | This is a small Wiki page about the golang package on maemo. The package | ||
+ | contains the standalone go compiler and libraries targeting armv6. | ||
== Creating a Hello world application using the go programming language == | == Creating a Hello world application using the go programming language == | ||
- | Creating a Hello world application using the | + | Creating a Hello world application using the go language created by google http://golang.org/ on the N900. The go compiler and libraries for maemo are packaged in a package called golang that can be installed from the fremantle/free repository. The package puts all it's content in a directory called /opt/go to follow maemo packaging policies. |
Once the package is installed we need to set a few environments variables to make the go compiler happy. | Once the package is installed we need to set a few environments variables to make the go compiler happy. | ||
Line 21: | Line 24: | ||
- | Now off to create Hello world. We will create a directory in the users home directory create a small go hello world file, compile, link and run it. | + | Now off to create Hello world. We will create a directory in the users home directory create a small go hello world file , compile,link and run it. |
Creating the directory using mkdir | Creating the directory using mkdir | ||
Line 58: | Line 61: | ||
Hello, Maemo | Hello, Maemo | ||
- | If all went well you just ran your first go code on | + | If all went well you just ran your first go code on maemo! |
- | + | ||
- | + |
Learn more about Contributing to the wiki.