exercise1

command
v0.0.0-...-91b80fc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL