<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://bugs.maemo.com/skins/common/feed.css?207"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>GoLang - Revision history</title>
		<link>http://bugs.maemo.com/index.php?title=GoLang&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.15.5-7</generator>
		<lastBuildDate>Thu, 09 Apr 2026 18:12:20 GMT</lastBuildDate>
		<item>
			<title>amigadave:&amp;#32;wikify and categorize</title>
			<link>http://bugs.maemo.com/index.php?title=GoLang&amp;diff=35161&amp;oldid=prev</link>
			<guid>http://bugs.maemo.com/index.php?title=GoLang&amp;diff=35161&amp;oldid=prev</guid>
			<description>&lt;p&gt;wikify and categorize&lt;/p&gt;

		&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 13:50, 31 May 2010&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;= golang =&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This is a small Wiki page about the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[http://maemo.org/packages/view/golang/ &lt;/ins&gt;golang package&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;] &lt;/ins&gt;on &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Maemo&lt;/ins&gt;. The package contains the standalone go compiler and libraries targeting armv6.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This is a small Wiki page about the golang package on &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;maemo&lt;/del&gt;. The package&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;contains the standalone go compiler and libraries targeting armv6.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Creating a Hello world application using the go programming language ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Creating a Hello world application using the go programming language ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Creating a Hello world application using the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;go language created by google &lt;/del&gt;http://golang.org/ on the N900. The go compiler and libraries for &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;maemo &lt;/del&gt;are packaged in a package called &lt;del class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/del&gt;golang that can be installed from the fremantle/free repository. The package puts all &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;it's &lt;/del&gt;content in a directory called /opt/go to follow &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;maemo &lt;/del&gt;packaging policies.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Creating a Hello world application using the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[&lt;/ins&gt;http://golang.org/ &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;go language] &lt;/ins&gt;on the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[Nokia &lt;/ins&gt;N900&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;|N900]]&lt;/ins&gt;. The go compiler and libraries for &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Maemo &lt;/ins&gt;are packaged in a package called &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;golang&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/code&amp;gt; &lt;/ins&gt;that can be installed from the fremantle/free repository. The package puts all &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;its &lt;/ins&gt;content in a directory called &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;/opt/go&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/code&amp;gt; &lt;/ins&gt;to follow &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Maemo &lt;/ins&gt;packaging policies.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Once the package is installed we need to set a few environments variables to make the go compiler happy.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Once the package is installed we need to set a few environments variables to make the go compiler happy.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 24:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 21:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;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.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;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.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Creating the directory using mkdir&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Creating the directory using mkdir&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 61:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 58:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;nbsp; Hello, Maemo&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;nbsp; Hello, Maemo&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;If all went well you just ran your first go code on &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;maemo&lt;/del&gt;!&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;If all went well you just ran your first go code on &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Maemo&lt;/ins&gt;!&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[Category:Development]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff generator: internal 2026-04-09 18:12:20 --&gt;
&lt;/table&gt;</description>
			<pubDate>Mon, 31 May 2010 13:50:43 GMT</pubDate>			<dc:creator>amigadave</dc:creator>			<comments>http://bugs.maemo.com/Talk:GoLang</comments>		</item>
		<item>
			<title>keesj:&amp;#32;Initial version of the golang page about the golang support and creation of a hello world application on the target</title>
			<link>http://bugs.maemo.com/index.php?title=GoLang&amp;diff=34894&amp;oldid=prev</link>
			<guid>http://bugs.maemo.com/index.php?title=GoLang&amp;diff=34894&amp;oldid=prev</guid>
			<description>&lt;p&gt;Initial version of the golang page about the golang support and creation of a hello world application on the target&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= golang =&lt;br /&gt;
&lt;br /&gt;
This is a small Wiki page about the golang package on maemo. The package&lt;br /&gt;
contains the standalone go compiler and libraries targeting armv6.&lt;br /&gt;
&lt;br /&gt;
== Creating a Hello world application using the go programming language ==&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
Once the package is installed we need to set a few environments variables to make the go compiler happy.&lt;br /&gt;
&lt;br /&gt;
Those are:&lt;br /&gt;
&lt;br /&gt;
 export GOROOT=/opt/go&lt;br /&gt;
 export GOOS=linux&lt;br /&gt;
 export GOARCH=arm&lt;br /&gt;
 export GOBIN=/opt/go/bin&lt;br /&gt;
 export GOPKG=/opt/go/pkg&lt;br /&gt;
 PATH=$PATH:$GOBIN&lt;br /&gt;
&lt;br /&gt;
The packager provides a script to to this that can be sourced&lt;br /&gt;
&lt;br /&gt;
 ~ $ . /opt/go/bin/go_profile&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
Creating the directory using mkdir&lt;br /&gt;
&lt;br /&gt;
 mkdir hello_go&lt;br /&gt;
&lt;br /&gt;
Go into that directory and fire up an editor&lt;br /&gt;
&lt;br /&gt;
 cd hello_go&lt;br /&gt;
 vi hello.go&lt;br /&gt;
&lt;br /&gt;
Paste the following&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
package main&lt;br /&gt;
&lt;br /&gt;
import &amp;quot;fmt&amp;quot;&lt;br /&gt;
&lt;br /&gt;
func main() {&lt;br /&gt;
  fmt.Printf(&amp;quot;Hello, Maemo\n&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
exit vi and compile hello.go&lt;br /&gt;
&lt;br /&gt;
 ~/hello_go $ 5g hello.go&lt;br /&gt;
&lt;br /&gt;
Link it against the go libs (the output is a staticaly linked binary)&lt;br /&gt;
&lt;br /&gt;
 ~/hello_go $ 5l hello.5&lt;br /&gt;
&lt;br /&gt;
and now run it&lt;br /&gt;
&lt;br /&gt;
 ~/hello_go $ ./5.out&lt;br /&gt;
 Hello, Maemo&lt;br /&gt;
&lt;br /&gt;
If all went well you just ran your first go code on maemo!&lt;/div&gt;</description>
			<pubDate>Wed, 26 May 2010 19:06:11 GMT</pubDate>			<dc:creator>keesj</dc:creator>			<comments>http://bugs.maemo.com/Talk:GoLang</comments>		</item>
	</channel>
</rss>