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

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 12: Line 12:
<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]]</tt> type: the length of the array.
<tt>[[Go Arrays#Array_Length|array]]</tt> type: the length of the array.


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

Revision as of 22:36, 27 March 2016

External

Internal

len()

string type: string length in bytes.

array type: the length of the array.

cap()