You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
247 B
16 lines
247 B
3 years ago
|
package main
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
func main() {
|
||
|
type Map map[string][]int
|
||
|
m := make(Map)
|
||
|
s := []int{1, 2}
|
||
|
s = append(s, 3)
|
||
|
fmt.Printf("%+v\n", s)
|
||
|
m["q1mi"] = s
|
||
|
s = append(s[:1], s[2:]...)
|
||
|
fmt.Printf("%+v\n", s)
|
||
|
fmt.Printf("%+v\n", m["q1mi"])
|
||
|
}
|