<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hyperthèse &#187; Go</title>
	<atom:link href="http://hyperthese.net/category/programmation/go/feed/" rel="self" type="application/rss+xml" />
	<link>http://hyperthese.net</link>
	<description>La connaissance supposée fausse</description>
	<lastBuildDate>Mon, 14 Jun 2010 17:32:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>La cohésion interne chez Google</title>
		<link>http://hyperthese.net/la-cohesion-interne-chez-google/</link>
		<comments>http://hyperthese.net/la-cohesion-interne-chez-google/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 23:05:50 +0000</pubDate>
		<dc:creator>Rémy Sanchez</dc:creator>
				<category><![CDATA[Go]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://hyperthese.net/?p=240</guid>
		<description><![CDATA[Quand une boite devient un peu grosse, il peut arriver qu'elle choppe des tendance schizophréniques. Par exemple, si on fouille bien dans le code source de Go, on trouve ça :
PLAIN TEXT
C:




// Is it a broken browser?


&#160; &#160; var msg string;


&#160; &#160; switch agent := req.UserAgent; &#123;


&#160; &#160; case strings.Index&#40;agent, "MSIE"&#41;&#62;= 0:


&#160; &#160; &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Quand une boite devient un peu grosse, il peut arriver qu'elle choppe des tendance schizophréniques. Par exemple, si on fouille bien dans le code source de Go, on trouve ça :</p>
<div class="igBar"><span id="lc-2"><a href="http://hyperthese.net/wp-content/plugins/feed-statistics.php?url=Iw==" onclick=\"javascript:showCodeTxt('c-2'); return false;\">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C:</span>
<div id="c-2">
<div class="c">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">// Is it a broken browser?</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; var msg <span style="color: #993333;">string</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">switch</span> agent := req.<span style="color: #202020;">UserAgent</span>; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">case</span> strings.<span style="color: #202020;">Index</span><span style="color: #66cc66;">&#40;</span>agent, <span style="color: #ff0000;">"MSIE"</span><span style="color: #66cc66;">&#41;</span>&gt;= <span style="color: #cc66cc;color:#800000;">0</span>:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; msg = <span style="color: #ff0000;">"Internet Explorer"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">case</span> strings.<span style="color: #202020;">Index</span><span style="color: #66cc66;">&#40;</span>agent, <span style="color: #ff0000;">"Chrome/"</span><span style="color: #66cc66;">&#41;</span>&gt;= <span style="color: #cc66cc;color:#800000;">0</span>:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; msg = <span style="color: #ff0000;">"Chrome"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">default</span>:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>J'aime bien le principe d'un produit "Google" (le Go n'a pas l'air si Google que ça) qui en insulte un autre <img src='http://hyperthese.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>(pour info, on trouve ça dans le fichier <em>$GOROOT/src/pkg/http/server.go</em>, vous aurez l'explication complète de pourquoi Chrome se fait traiter de broken en commentaire de la fonction <img src='http://hyperthese.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</p>
 <img src="http://hyperthese.net/wp-content/plugins/feed-statistics.php?view=1&post_id=240" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://hyperthese.net/la-cohesion-interne-chez-google/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Go : un serveur TCP</title>
		<link>http://hyperthese.net/go-un-serveur-tcp/</link>
		<comments>http://hyperthese.net/go-un-serveur-tcp/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 05:11:48 +0000</pubDate>
		<dc:creator>Rémy Sanchez</dc:creator>
				<category><![CDATA[Go]]></category>

		<guid isPermaLink="false">http://hyperthese.net/?p=236</guid>
		<description><![CDATA[Dans la catégorie je fais mumuse avec Go : je fais un serveur TCP qui répond invariablement "Hello, World !" à tous les clients qui se connectent.
PLAIN TEXT
C:




package main


&#160;


import &#40;


&#160; &#160; "fmt";


&#160; &#160; "net";


&#160; &#160; "strings";


&#41;;


&#160;


func handler&#40;c *net.TCPConn&#41; &#123;


&#160; &#160; c.Write&#40;strings.Bytes&#40;"Hello, World !\n"&#41;&#41;;


&#160; &#160; c.Close&#40;&#41;;


&#125;


&#160;


func main&#40;&#41; &#123;


&#160; &#160; addr, err := net.ResolveTCPAddr&#40;"127.0.0.1:5896"&#41;;


&#160; &#160; l, err [...]]]></description>
			<content:encoded><![CDATA[<p>Dans la catégorie je fais mumuse avec Go : je fais un serveur TCP qui répond invariablement "Hello, World !" à tous les clients qui se connectent.</p>
<div class="igBar"><span id="lc-4"><a href="http://hyperthese.net/wp-content/plugins/feed-statistics.php?url=Iw==" onclick=\"javascript:showCodeTxt('c-4'); return false;\">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C:</span>
<div id="c-4">
<div class="c">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">package main</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">import <span style="color: #66cc66;">&#40;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #ff0000;">"fmt"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #ff0000;">"net"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #ff0000;">"strings"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">func handler<span style="color: #66cc66;">&#40;</span>c *net.<span style="color: #202020;">TCPConn</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; c.<span style="color: #202020;">Write</span><span style="color: #66cc66;">&#40;</span>strings.<span style="color: #202020;">Bytes</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"Hello, World !<span style="color: #000099; font-weight: bold;">\n</span>"</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; c.<span style="color: #202020;">Close</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">func main<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; addr, err := net.<span style="color: #202020;">ResolveTCPAddr</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"127.0.0.1:5896"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; l, err := net.<span style="color: #202020;">ListenTCP</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"tcp4"</span>, addr<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">if</span> l == nil <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; fmt.<span style="color: #202020;">Println</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"Could not listen : "</span>, err<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; a, err := l.<span style="color: #202020;">AcceptTCP</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> a == nil <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fmt.<span style="color: #202020;">Println</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"Could not accept : "</span>, err<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; go handler<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
 <img src="http://hyperthese.net/wp-content/plugins/feed-statistics.php?view=1&post_id=236" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://hyperthese.net/go-un-serveur-tcp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Go : VIM et Makefile</title>
		<link>http://hyperthese.net/go-vim-et-makefile/</link>
		<comments>http://hyperthese.net/go-vim-et-makefile/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 22:44:03 +0000</pubDate>
		<dc:creator>Rémy Sanchez</dc:creator>
				<category><![CDATA[Go]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://hyperthese.net/?p=220</guid>
		<description><![CDATA[Me voici en train de faire mumuse avec le Go, nouveau langage fraîchement annoncé par Google (j'sais pas si le projet est bien porté à cœur par Google même quand on voit la tronche de leurs t-shirts et de leur site, sans compter l'annonce lors d'un simple tech talk).  Même si leur mascotte ressemble [...]]]></description>
			<content:encoded><![CDATA[<p>Me voici en train de faire mumuse avec le <a href="http://hyperthese.net/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2dvbGFuZy5vcmcv">Go</a>, nouveau langage <a href="http://hyperthese.net/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy55b3V0dWJlLmNvbS93YXRjaD92PXJLbkRnVDczdjhz">fraîchement annoncé</a> par Google (j'sais pas si le projet est bien porté à cœur par Google même quand on voit la tronche de leurs <a href="http://hyperthese.net/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3d3dy55b3V0dWJlLmNvbS93YXRjaD92PXd3b1dlaS1HQVBv">t-shirts</a> et de leur site, sans compter l'annonce lors d'un simple tech talk).  Même si leur mascotte ressemble largement trop à <a href="http://hyperthese.net/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3BsYW45LmJlbGwtbGFicy5jb20vcGxhbjkvZ2xlbmRhLmh0bWw=">Glenda</a>, j'ai donc quand même décidé de leur porter un peu d'attention. Dans ce but, j'ai suivi leur <a href="http://hyperthese.net/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2dvbGFuZy5vcmcvZG9jL2luc3RhbGwuaHRtbA==">tuto d'installation</a>, mais pour le compléter j'ai écris un Makefile pour compiler un seul fichier (la flemme de faire la compilation "à la main") :</p>
<div class="igBar"><span id="lcode-8"><a href="http://hyperthese.net/wp-content/plugins/feed-statistics.php?url=Iw==" onclick=\"javascript:showCodeTxt('code-8'); return false;\">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-8">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">GOARCHPREF=<span style="color:#800000;color:#800000;">6</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">GOCOMPILE=$<span style="color:#006600; font-weight:bold;">&#40;</span>GOARCHPREF<span style="color:#006600; font-weight:bold;">&#41;</span>g</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">GOLINK=$<span style="color:#006600; font-weight:bold;">&#40;</span>GOARCHPREF<span style="color:#006600; font-weight:bold;">&#41;</span>l</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">%: %.$<span style="color:#006600; font-weight:bold;">&#40;</span>GOARCHPREF<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; $<span style="color:#006600; font-weight:bold;">&#40;</span>GOLINK<span style="color:#006600; font-weight:bold;">&#41;</span> -o $@ $&lt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">%.$<span style="color:#006600; font-weight:bold;">&#40;</span>GOARCHPREF<span style="color:#006600; font-weight:bold;">&#41;</span>: %.<span style="">go</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; $<span style="color:#006600; font-weight:bold;">&#40;</span>GOCOMPILE<span style="color:#006600; font-weight:bold;">&#41;</span> $&lt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Mettons que je veuille compiler truc.go :</p>
<div class="igBar"><span id="lcode-9"><a href="http://hyperthese.net/wp-content/plugins/feed-statistics.php?url=Iw==" onclick=\"javascript:showCodeTxt('code-9'); return false;\">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-9">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">make truc </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>On récupère à la sortie un fichier <em>truc</em> exécutable.</p>
<p>Ça c'est le Makefile pour amd64. Si vous êtes sous x86, mettez le GOARCHPREF à 8, et si vous êtes sous ARM mettez le à 5.</p>
<p>Ah et j'oubliez, comment coder sans coloration syntaxique dans Vim ? Ils sont gentil, ils donnent les règles de coloration syntaxique pour Vim (et d'autres éditeurs sans importance) dans le répertoire $GOROOT/misc/vim. Pour l'installer, il faut le copier (au moins sous Debian) dans <em>/usr/share/vim/vim72/syntax/</em>, puis ajouter la ligne</p>
<div class="igBar"><span id="lcode-10"><a href="http://hyperthese.net/wp-content/plugins/feed-statistics.php?url=Iw==" onclick=\"javascript:showCodeTxt('code-10'); return false;\">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-10">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">au BufNewFile,BufRead *.<span style="">go</span> setf go </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Au fichier <em>/usr/share/vim/vim72/filetype.vim</em></p>
<p>Et ça sera tout pour aujourd'hui <img src='http://hyperthese.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Moi j'men vais coder un serveur quelconque en Go <img src='http://hyperthese.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>EDIT : ouais non définitivement, ce projet Google s'en tape en fait. Par exemple, le site du langage ne parle <a href="http://hyperthese.net/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2dvbGFuZy5vcmcvc2VhcmNoP3E9Z29vZ2xl">nulle part</a> de "Google"...</p>
 <img src="http://hyperthese.net/wp-content/plugins/feed-statistics.php?view=1&post_id=220" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://hyperthese.net/go-vim-et-makefile/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
