Omitting indexes

Report a typo

Suppose you have the slice of strings colors:

colors := []string{"Red🟥", "Green🟩", "Blue🟦", "Yellow🟨", "Purple🟪", "Orange🟧"}

Below you will see the c1 to c5 subslice declarations that use full slice expressions to create subslices from the colors slice. Select all the full slice expressions that have valid syntax!

Select one or more options from the list
___

Create a free account to access the full topic