package main // A named slice type is not allowed: use []T directly. Both compilers reject // this shape, and it is why []T directly has no methods. type Names []string func main() { var n Names println("names:", len(n)) }