Go Built-In Functions Length and Capacity: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 9: Line 9:


=<tt>len()</tt>=
=<tt>len()</tt>=
* [[Go Arrays#Array_Length|Array length]]


<tt>[[Go Strings#Other|string]]</tt> type: string length in bytes.
<tt>[[Go Strings#Other|string]]</tt> type: string length in bytes.
<tt>[[Go Arrays#Array_Length|array]]</tt> type: the length of the array.


=<tt>cap()</tt>=
=<tt>cap()</tt>=

Revision as of 00:06, 28 March 2016