- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 59 for TrimSpace (0.15 sec)
-
cmd/signature-v4-parser.go
creds := strings.SplitN(strings.TrimSpace(credElement), "=", 2) if len(creds) != 2 { return ch, ErrMissingFields } if creds[0] != "Credential" { return ch, ErrMissingCredTag } credElements := strings.Split(strings.TrimSpace(creds[1]), SlashSeparator) if len(credElements) < 5 { return ch, ErrCredMalformed }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 9.4K bytes - Viewed (0) -
src/cmd/cgo/godefs.go
i := strings.Index(c.Text, "+godefs map") if i < 0 { continue } s := strings.TrimSpace(c.Text[i+len("+godefs map"):]) i = strings.Index(s, " ") if i < 0 { fmt.Fprintf(os.Stderr, "invalid +godefs map comment: %s\n", c.Text) continue } override["_Ctype_"+strings.TrimSpace(s[:i])] = strings.TrimSpace(s[i:]) } } for _, n := range f.Name { if s := override[n.Go]; s != "" {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Sep 08 14:33:35 GMT 2022 - 4.5K bytes - Viewed (0) -
internal/config/subnet/config.go
if len(proxy) > 0 { proxyURL, err = xnet.ParseHTTPURL(proxy) if err != nil { return cfg, err } } cfg.License = strings.TrimSpace(env.Get(config.EnvMinIOSubnetLicense, kvs.Get(config.License))) cfg.APIKey = strings.TrimSpace(env.Get(config.EnvMinIOSubnetAPIKey, kvs.Get(config.APIKey))) cfg.Proxy = proxy if transport == nil { // when transport is nil, it means we are just validating the
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Nov 24 17:59:35 GMT 2023 - 3.8K bytes - Viewed (0) -
cni/pkg/plugin/sidecar_redirect.go
} func parsePort(portStr string) (uint16, error) { 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 {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Jan 26 20:34:28 GMT 2024 - 10.6K bytes - Viewed (0) -
buildscripts/gen-ldflags.go
if commit, err = exec.Command(cmdName, cmdArgs...).Output(); err != nil { fmt.Fprintln(os.Stderr, "Error generating git commit-id: ", err) os.Exit(1) } return strings.TrimSpace(string(commit)) } func commitTime() time.Time { // git log --format=%cD -n1 var ( commitUnix []byte err error ) cmdName := "git" cmdArgs := []string{"log", "--format=%cI", "-n1"}
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Jun 16 23:10:48 GMT 2022 - 3.3K bytes - Viewed (0) -
src/cmd/asm/internal/asm/endtoend_test.go
case 1: // no comment case 2: // might be printed form or hex note := strings.TrimSpace(parts[1]) if isHexes(note) { hexes = note } else { printed = note } case 3: // printed form, then hex printed = strings.TrimSpace(parts[1]) hexes = strings.TrimSpace(parts[2]) if !isHexes(hexes) { t.Errorf("%s:%d: malformed hex instruction encoding: %s", input, lineno, line)
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Dec 07 18:42:59 GMT 2023 - 11.6K bytes - Viewed (0) -
istioctl/pkg/install/k8sversion/version_test.go
logger := clog.NewConsoleLogger(&outBuf, &errBuf, nil) IsK8VersionSupported(k8sClient, logger) errMsgTrim := strings.TrimSpace(c.logMsg) outBufTrim := strings.TrimSpace(outBuf.String()) if !c.isValid && strings.Compare(errMsgTrim, outBufTrim) != 0 { t.Fatalf("\nwanted: %v \nbut found: %v", errMsgTrim, outBufTrim) }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Jan 19 02:46:48 GMT 2024 - 6.3K bytes - Viewed (0) -
internal/config/certs.go
// Read certificate file. var data []byte if data, err = os.ReadFile(certFile); err != nil { return nil, err } // Trimming leading and tailing white spaces. data = bytes.TrimSpace(data) // Parse all certs in the chain. current := data for len(current) > 0 { var pemBlock *pem.Block if pemBlock, current = pem.Decode(current); pemBlock == nil {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Sep 04 19:57:37 GMT 2023 - 3.8K bytes - Viewed (0) -
cmd/common-main.go
func parsEnvEntry(envEntry string) (envKV, error) { envEntry = strings.TrimSpace(envEntry) if envEntry == "" { // Skip all empty lines return envKV{ Skip: true, }, nil } if strings.HasPrefix(envEntry, "#") { // Skip commented lines return envKV{ Skip: true, }, nil } envTokens := strings.SplitN(strings.TrimSpace(strings.TrimPrefix(envEntry, "export")), config.EnvSeparator, 2)
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sat May 04 00:17:57 GMT 2024 - 35.8K bytes - Viewed (2) -
operator/cmd/mesh/test-util_test.go
func toMap(s string) map[string]any { out := make(map[string]any) for _, l := range strings.Split(s, ",") { l = strings.TrimSpace(l) kv := strings.Split(l, ":") if len(kv) != 2 { panic("bad key:value in " + s) } out[strings.TrimSpace(kv[0])] = strings.TrimSpace(kv[1]) } if len(out) == 0 { return nil } return out }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Oct 31 14:48:28 GMT 2023 - 15.3K bytes - Viewed (0)