copy slice to array

Run Settings
LanguageGo
Language Version
Run Command
package main import "fmt" func main() { a := [2]string{ "hello", "world", } b := []string{ "goodbye", "world", } copy(a[:], b) fmt.Println(a) }
Editor Settings
Theme
Key bindings
Full width
Lines