- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for parseWords (4.44 sec)
-
cni/pkg/plugin/sidecar_redirect.go
port, err := strconv.ParseUint(strings.TrimSpace(portStr), 10, 16) if err != nil { return 0, fmt.Errorf("failed parsing port %q: %v", portStr, err) } return uint16(port), nil } func parsePorts(portsString string) ([]int, error) { portsString = strings.TrimSpace(portsString) ports := make([]int, 0) if len(portsString) > 0 { for _, portStr := range splitPorts(portsString) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 10.6K bytes - Viewed (0) -
src/cmd/go/internal/modindex/build.go
var errNoModules = errors.New("not using modules") func findImportComment(data []byte) (s string, line int) { // expect keyword package word, data := parseWord(data) if string(word) != "package" { return "", 0 } // expect package name _, data = parseWord(data) // now ready for import comment, a // or /* */ comment // beginning and ending on the current line.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 17:39:23 UTC 2023 - 26.8K bytes - Viewed (0)