9951 explained code solutions for 126 technologies


golangHow to declare array of strings


func main() {
  arr := [5]string{"a","b","c","d","e"}
}ctrl + c
func main() {

declare main function that will be launched automatically

[5]string

defines array of 5 string elements

{"a","b","c","d","e"}

list of values new array will have