Sobes.tech

What happens when reading from a closed channel? Why does the program hang in an infinite loop when reading from a closed channel without range?

245

There is MongoDB as a document-oriented storage, and there is Postgres where you can create a table with a primary key and a JSON column. How do they differ?

240

// Question 4. What will be displayed on the screen package main import "fmt" func subis(is []int) []int { return append(is, 5, 6) } func main() { is := []int{1, 2, 3, 4} subis(is[2:3]) fmt.Println(is) }

231
/11