- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for portNums (0.09 sec)
-
pkg/printers/internalversion/printers.go
list := []string{} max := 3 more := false count := 0 for _, port := range ports { if len(list) < max { portNum := "*" if port.Port != nil { portNum = strconv.Itoa(int(*port.Port)) } else if port.Name != nil { portNum = *port.Name } list = append(list, portNum) } else if len(list) == max { more = true } count++ } return listWithMoreString(list, more, count, max)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 14:04:15 UTC 2024 - 128.3K bytes - Viewed (0)