Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 61 for TrimSpace (0.18 sec)

  1. cmd/object-api-options.go

    	attributes = make(map[string]struct{})
    	for _, v := range strings.Split(strings.TrimSpace(h.Get(xhttp.AmzObjectAttributes)), ",") {
    		if v != "" {
    			attributes[v] = struct{}{}
    		}
    	}
    
    	return
    }
    
    func parseIntHeader(bucket, object string, h http.Header, headerName string) (value int, err error) {
    	stringInt := strings.TrimSpace(h.Get(headerName))
    	if stringInt == "" {
    		return
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Apr 20 09:05:54 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  2. 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 Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  3. 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 23 11:13:09 GMT 2024
    - Last Modified: Thu Sep 08 14:33:35 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  4. 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 Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Nov 24 17:59:35 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  5. 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 Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  6. schema/utils.go

    		k := strings.TrimSpace(strings.ToUpper(values[0]))
    
    		if len(values) >= 2 {
    			settings[k] = strings.Join(values[1:], ":")
    		} else if k != "" {
    			settings[k] = k
    		}
    	}
    
    	return settings
    }
    
    func toColumns(val string) (results []string) {
    	if val != "" {
    		for _, v := range strings.Split(val, ",") {
    			results = append(results, strings.TrimSpace(v))
    		}
    	}
    	return
    }
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Sat Aug 19 13:35:14 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  7. 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 Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jun 16 23:10:48 GMT 2022
    - 3.3K bytes
    - Viewed (0)
  8. internal/s3select/sql/funceval.go

    		// needs to be trimmed.
    		res, ok := strToInt(strings.TrimSpace(x))
    		if !ok {
    			return 0, errCastFailure("could not parse as int")
    		}
    		return res, nil
    	case []byte:
    		// Parse as number, truncate floating point if
    		// needed.
    		// String might contain trimming spaces, which
    		// needs to be trimmed.
    		res, ok := strToInt(strings.TrimSpace(string(x)))
    		if !ok {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 13.2K bytes
    - Viewed (0)
  9. cmd/metrics-v3-handler.go

    	bucketsParam := r.Form["buckets"]
    	buckets := make([]string, 0, len(bucketsParam))
    	for _, bp := range bucketsParam {
    		bp = strings.TrimSpace(bp)
    		if bp == "" {
    			continue
    		}
    		splits := strings.Split(bp, ",")
    		for _, split := range splits {
    			buckets = append(buckets, strings.TrimSpace(split))
    		}
    	}
    
    	innerHandler := h.handle(pathComponents, isListingRequest, buckets)
    
    	// Add tracing to the prom. handler
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  10. 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 23 11:13:09 GMT 2024
    - Last Modified: Thu Dec 07 18:42:59 GMT 2023
    - 11.6K bytes
    - Viewed (0)
Back to top