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

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
=External=
* Specification https://golang.org/ref/spec#Length_and_capacity
=Internal=
* [[Go Concepts - Functions#Built-in_Functions|Built-in Functions]]
* [[Go Concepts - Lexical Structure#Pre-Declared_Identifiers|Pre-declared Identifiers]]
=<tt>len()</tt>=
* [[Go Strings#String_Length|String length]]
* [[Go Arrays#Array_Length|Array length]]
* [[Go Slices#Slice_Length|Slice length]]
* [[Go Maps#Map_Length|Map length]]
=<tt>cap()</tt>=
=<tt>cap()</tt>=


* [[Go_Slices#Slice_Capacity|Slice capacity]]
* [[Go_Slices#Slice_Capacity|Slice capacity]]

Latest revision as of 23:54, 21 August 2023