Go Arrays: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
An array is a numbered sequence of elements, ''of a single type'', and ''with a fixed length''.
An array is a numbered sequence of elements, ''of a single type'', and ''with a fixed length''.


=Declaration=
<pre>
var a [5]int
</pre>


=Array Literals=
=Array Literals=

Revision as of 06:04, 27 March 2016

Internal

Overview

An array is a numbered sequence of elements, of a single type, and with a fixed length.

Declaration

var a [5]int

Array Literals