How to compactly create a 2D slice in Go?
Hi everyone! I just started learning Go and ran into a problem working with 2D slices. I need to create a matrix, for example 3x4, to store integers. In other languages I just write `int matrix[3][4]`, but in Go it doesn't work that way.\n\nI tried doing this:\n\n```go\nmatrix := make([][]int, 3)\nfor i := range matrix {\n matrix[i] = make([]int, 4)\n}\n```\n\nThis works, but the code is cumbersome. For simple initialization I have to write a whole loop. Is there a more concise way? Maybe there is a one-liner or a built-in function?\n\nAdditionally: I need all elements to be filled with zeros (or another default value). And also — what if I want to create a jagged array where rows have different lengths? For example, the first row has 3 elements