Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 604 for fmt (0.44 sec)

  1. cmd/endpoint_test.go

    		{"", Endpoint{}, -1, fmt.Errorf("empty or root endpoint is not supported")},
    		{SlashSeparator, Endpoint{}, -1, fmt.Errorf("empty or root endpoint is not supported")},
    		{`\`, Endpoint{}, -1, fmt.Errorf("empty or root endpoint is not supported")},
    		{"c://foo", Endpoint{}, -1, fmt.Errorf("invalid URL endpoint format")},
    		{"ftp://foo", Endpoint{}, -1, fmt.Errorf("invalid URL endpoint format")},
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Jan 13 07:53:03 GMT 2024
    - 18.9K bytes
    - Viewed (1)
  2. misc/ios/go_ios_exec.go

    	patterns := []string{fmt.Sprintf("%s (%s)", iosVer, buildVer), fmt.Sprintf("%s (*)", iosVer), fmt.Sprintf("%s*", iosVer)}
    	for _, pattern := range patterns {
    		matches, err := filepath.Glob(filepath.Join(sdkBase, pattern, "DeveloperDiskImage.dmg"))
    		if err != nil {
    			return "", fmt.Errorf("findDevImage: %v", err)
    		}
    		if len(matches) > 0 {
    			return matches[0], nil
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
  3. internal/lsync/lrwmutex_test.go

    		panic("Failed to acquire read lock")
    	}
    	// fmt.Println("1st read lock acquired, waiting...")
    
    	if !lrwm.GetRLock(ctx, "", "object1", time.Second) {
    		panic("Failed to acquire read lock")
    	}
    	// fmt.Println("2nd read lock acquired, waiting...")
    
    	go func() {
    		time.Sleep(2 * time.Second)
    		lrwm.RUnlock()
    		// fmt.Println("1st read lock released, waiting...")
    	}()
    
    	go func() {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Mar 05 04:57:35 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  4. internal/s3select/json/record.go

    	// See golang.org/issue/6384 and golang.org/issue/14135.
    	// Like fmt %g, but the exponent cutoffs are different
    	// and exponents themselves are not padded to two digits.
    	abs := math.Abs(f)
    	fmt := byte('f')
    	if abs != 0 {
    		if abs < 1e-6 || abs >= 1e21 {
    			fmt = 'e'
    		}
    	}
    	dst = strconv.AppendFloat(dst, f, fmt, -1, 64)
    	if fmt == 'e' {
    		// clean up e-09 to e-9
    		n := len(dst)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  5. cmd/main.go

    	banner := &strings.Builder{}
    	fmt.Fprintln(banner, color.Bold("%s version %s (commit-id=%s)", c.App.Name, c.App.Version, CommitID))
    	fmt.Fprintln(banner, color.Blue("Runtime:")+color.Bold(" %s %s/%s", runtime.Version(), runtime.GOOS, runtime.GOARCH))
    	fmt.Fprintln(banner, color.Blue("License:")+color.Bold(" GNU AGPLv3 <https://www.gnu.org/licenses/agpl-3.0.html>"))
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 09 03:07:08 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  6. istioctl/pkg/wait/wait.go

    					t.Stop()
    					return fmt.Errorf("unable to retrieve Kubernetes resource2 %s: %v", "", err)
    				case <-ctx.Done():
    					printVerbosef(cmd, "timeout")
    					// I think this means the timeout has happened:
    					t.Stop()
    					errTmpl := "timeout expired before resource %s became effective on %s"
    					var errMsg string
    					if proxyFlag != "" {
    						errMsg = fmt.Sprintf(errTmpl, targetResource, proxyFlag)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Feb 17 12:24:17 GMT 2024
    - 10.1K bytes
    - Viewed (0)
  7. operator/cmd/mesh/shared.go

    	return &writerPrinter{writer: w}
    }
    
    type writerPrinter struct {
    	writer io.Writer
    }
    
    func (w *writerPrinter) Printf(format string, a ...any) {
    	_, _ = fmt.Fprintf(w.writer, format, a...)
    }
    
    func (w *writerPrinter) Println(str string) {
    	_, _ = fmt.Fprintln(w.writer, str)
    }
    
    var logMutex = sync.Mutex{}
    
    func ConfigLogs(opt *log.Options) error {
    	logMutex.Lock()
    	defer logMutex.Unlock()
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  8. buildscripts/heal-manual.go

    	if err != nil {
    		log.Fatalln(err)
    	}
    	fmt.Println("Healstart sequence ===")
    	enc := json.NewEncoder(os.Stdout)
    	if err = enc.Encode(&start); err != nil {
    		log.Fatalln(err)
    	}
    
    	fmt.Println()
    	for {
    		_, status, err := madmClnt.Heal(context.Background(), "healing-rewrite-bucket", "", opts, start.ClientToken, false, false)
    		if status.Summary == "finished" {
    			fmt.Println("Healstatus on items ===")
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Feb 27 09:47:58 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  9. cmd/object-api-options.go

    		if err != nil {
    			return opts, fmt.Errorf("Unable to parse %s, failed with %w", xhttp.MinIOSourceMTime, err)
    		}
    	}
    	retaintimeStr := strings.TrimSpace(hdr.Get(xhttp.MinIOSourceObjectRetentionTimestamp))
    	var retaintimestmp time.Time
    	if retaintimeStr != "" {
    		retaintimestmp, err = time.Parse(time.RFC3339, retaintimeStr)
    		if err != nil {
    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)
  10. cmd/sts-handlers.go

    		writeSTSErrorResponse(ctx, w, ErrSTSMissingParameter, fmt.Errorf("Invalid STS API version %s, expecting %s", r.Form.Get(stsVersion), stsAPIVersion))
    		return
    	}
    
    	action := r.Form.Get(stsAction)
    	switch action {
    	case assumeRole:
    	default:
    		writeSTSErrorResponse(ctx, w, ErrSTSInvalidParameterValue, fmt.Errorf("Unsupported action %s", action))
    		return
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 18:36:18 GMT 2024
    - 34.7K bytes
    - Viewed (2)
Back to top