parent
eb344c4ba7
commit
e42d830a83
@ -0,0 +1,15 @@
|
||||
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"])
|
||||
}
|
Loading…
Reference in new issue