slice example
This commit is contained in:
parent
5a4fdbe0b9
commit
edfcb7425c
|
@ -16,4 +16,6 @@ func Demo2() {
|
|||
fmt.Println(cities_copy)
|
||||
|
||||
fmt.Println(cities[1:4])
|
||||
fmt.Println(cities[1:])
|
||||
fmt.Println(cities[:2])
|
||||
}
|
Loading…
Reference in New Issue
Block a user