Go Built-In Functions Length and Capacity: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 11: | Line 11: | ||
<tt>string</tt> type: string length in bytes. | <tt>string</tt> type: string length in bytes. | ||
<tt>array</tt> type: the length of the array. | |||
=<tt>cap()</tt>= | =<tt>cap()</tt>= |
Revision as of 22:31, 27 March 2016
External
- Specification https://golang.org/ref/spec#Length_and_capacity
Internal
len()
string type: string length in bytes.
array type: the length of the array.