9951 explained code solutions for 126 technologies


golangHow to create slice with make()


package main

func main() {
	a := make([]int, 5)
}ctrl + c
package main

default package declaration

make(

creates zero-filled array and returns slice referencing this array

[]int, 5

we're creating array of 5 integers