Saved Bookmarks
| 1. |
What Is The Difference Between Len() And Cap() Functions Of Slice In Go? |
|
Answer» LEN() FUNCTION returns the ELEMENTS presents in the slice where CAP() function returns the capacity of slice as how many elements it can be accomodate. len() function returns the elements presents in the slice where cap() function returns the capacity of slice as how many elements it can be accomodate. |
|