PHP » GoLang |
login |
register |
about
|
array_mergearray_merge[code] func ArrayMerge(ss ...[]interface{}) []interface{} { n := 0 for _, v := range ss { n += len(v) } s := make([]interface{}, 0, n) for _, v := range ss { s = append(s, v...) } return s } [/code] |