Go · Function
len
len returns the size of a Go value according to its type. It counts elements for arrays, slices, and maps; bytes for strings; and queued values for channels.
Last updated
Syntax
func len(v Type) intIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
capappendmakecopy