﻿<?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>Go Program - The First internet site for Go programming &#187; DataTypes</title>
	<atom:link href="http://www.go-program.com/category/basics/datatypes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.go-program.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 19 Nov 2009 11:31:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Go Language Data Types</title>
		<link>http://www.go-program.com/go-programming-language-data-types/</link>
		<comments>http://www.go-program.com/go-programming-language-data-types/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 14:45:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DataTypes]]></category>

		<guid isPermaLink="false">http://www.go-program.com/?p=12</guid>
		<description><![CDATA[



Numeric types
Numeric types are built in, will be familiar:




int


uint






float




int8


uint8 = byte







int16


uint16







int32


uint32


float32




int64


uint64


float64





Also uintptr, an integer big enough to store a pointer.
These are all distinct types; int is not int32 even on a 32-bit machine.
No implicit conversions.

Bool

The usual boolean type, bool, with values true and false (predefined constants).
The if statement etc. use boolean expressions.
Pointers and integers are [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-9004887195759386";
/* Go programs text ads1 */
google_ad_slot = "3650915252";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p align="center">Numeric types</p>
<p>Numeric types are built in, will be familiar:</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="123" valign="top">
<p align="center">int</p>
</td>
<td width="123" valign="top">
<p align="center">uint</p>
</td>
<p><script type="text/javascript"><!--
google_ad_client = "pub-9004887195759386";
/* Goprograms1 */
google_ad_slot = "8587802801";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<td width="123" valign="top">
<p align="center">float</p>
</td>
</tr>
<tr>
<td width="123" valign="top">
<p align="center">int8</p>
</td>
<td width="123" valign="top">
<p align="center">uint8 = byte</p>
</td>
<td width="123" valign="top">
<p align="center">
</td>
</tr>
<tr>
<td width="123" valign="top">
<p align="center">int16</p>
</td>
<td width="123" valign="top">
<p align="center">uint16</p>
</td>
<td width="123" valign="top">
<p align="center">
</td>
</tr>
<tr>
<td width="123" valign="top">
<p align="center">int32</p>
</td>
<td width="123" valign="top">
<p align="center">uint32</p>
</td>
<td width="123" valign="top">
<p align="center">float32</p>
</td>
</tr>
<tr>
<td width="123" valign="top">
<p align="center">int64</p>
</td>
<td width="123" valign="top">
<p align="center">uint64</p>
</td>
<td width="123" valign="top">
<p align="center">float64</p>
</td>
</tr>
</tbody>
</table>
<ul>
<li>Also uintptr, an integer big enough to store a pointer.</li>
<li>These are all distinct types; int is not int32 even on a 32-bit machine.</li>
<li>No implicit conversions.</li>
</ul>
<p align="center">Bool</p>
<ul>
<li>The usual boolean type, bool, with values true and false (predefined constants).</li>
<li>The if statement etc. use boolean expressions.</li>
<li>Pointers and integers are not booleans.</li>
</ul>
<p style="text-align: center;">String</p>
<ul>
<li>The built-in type string represents immutable arrays of bytes &#8211; that is, text. Strings are length-delimited not NUL-terminated.</li>
<li>String literals have type string.</li>
<li>Immutable, just like ints. Can reassign variables but not edit values.</li>
</ul>
<p>Just as 3 is always 3, &#8220;hello&#8221; is always &#8220;hello&#8221;.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.go-program.com/go-programming-language-data-types/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
