3 ms·
Whether to judge the line below idiomatic, or not, is a question I leave to the authorities -- but it is highly convenient, and prints "false". slice := []st
by everybodyknows 1y ago
Whether to judge the line below idiomatic, or not, is a question I leave to the authorities -- but it is highly convenient, and prints "false".
slice := []string{}
fmt.Println(slice == nil)