Documentation ¶
Overview ¶
Declare a nil slice of integers. Create a loop that appends 10 values to the slice. Iterate over the slice and display each value.
Declare a slice of five strings and initialize the slice with string literal values. Display all the elements. Take a slice of index one and two and display the index position and value of each element in the new slice.
Click to show internal directories.
Click to hide internal directories.