Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 401 for Fprintf (0.21 sec)

  1. operator/cmd/mesh/install.go

    	b.WriteString("InFilenames:      " + fmt.Sprint(a.InFilenames) + "\n")
    	b.WriteString("ReadinessTimeout: " + fmt.Sprint(a.ReadinessTimeout) + "\n")
    	b.WriteString("SkipConfirmation: " + fmt.Sprint(a.SkipConfirmation) + "\n")
    	b.WriteString("Force:            " + fmt.Sprint(a.Force) + "\n")
    	b.WriteString("Verify:           " + fmt.Sprint(a.Verify) + "\n")
    	b.WriteString("Set:              " + fmt.Sprint(a.Set) + "\n")
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu May 02 14:30:43 GMT 2024
    - 15.5K bytes
    - Viewed (1)
  2. docs/debugging/reorder-disks/main.go

    	for _, disk := range localDisks {
    		expectedDisksName[fmt.Sprintf("%d-%d", disk.index/setSize, disk.index%setSize)] = disk.path
    		format, err := getFormatJSON(disk.path)
    		if err != nil {
    			log.Printf("Unable to read format.json from `%s`, error: %v\n", disk.path, err)
    			continue
    		}
    		foundDiskLoc, err := getDiskLocation(format)
    		if err != nil {
    			log.Printf("Unable to get disk location of `%s`, error: %v\n", disk.path, err)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  3. docs/debugging/xl-meta/main.go

    						if verID == "00000000-0000-0000-0000-000000000000" {
    							// If the version ID is all zeros, use the signature as version ID.
    							verID = fmt.Sprintf("null/%08x", header.Signature)
    							v0 = verID
    						}
    						idx := ei.V2Obj.EcIndex
    						filemap[file][verID] = fmt.Sprintf("%s/shard-%02d-of-%02d", verID, idx, ei.V2Obj.EcN+ei.V2Obj.EcM)
    						filemap[file][verID+".json"] = buf.String()
    					}
    					return nil
    				})
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:56:22 GMT 2024
    - 20.2K bytes
    - Viewed (1)
  4. internal/color/color.go

    		}
    		return fmt.Sprintf
    	}()
    
    	Blue = func() func(format string, a ...interface{}) string {
    		if IsTerminal() {
    			return color.New(color.FgBlue).SprintfFunc()
    		}
    		return fmt.Sprintf
    	}()
    
    	Yellow = func() func(format string, a ...interface{}) string {
    		if IsTerminal() {
    			return color.New(color.FgYellow).SprintfFunc()
    		}
    		return fmt.Sprintf
    	}()
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  5. docs/auditlog/auditlog-echo.go

    	body, err := io.ReadAll(r.Body)
    	defer r.Body.Close()
    	if err != nil {
    		log.Printf("Error reading request body: %v", err)
    		w.WriteHeader(http.StatusBadRequest)
    		return
    	}
    
    	log.Printf(">>> %s %s\n", r.Method, r.URL.Path)
    	var out bytes.Buffer
    	json.Indent(&out, body, "", "    ")
    	log.Printf("%s\n", out.String())
    
    	w.WriteHeader(http.StatusOK)
    }
    
    func main() {
    	flag.Parse()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 21:31:13 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  6. internal/grid/muxserver.go

    	if seq != m.RecvSeq {
    		if debugPrint {
    			fmt.Printf("expected sequence %d, got %d\n", m.RecvSeq, seq)
    		}
    		m.disconnect(fmt.Sprintf("receive sequence number mismatch. want %d, got %d", m.RecvSeq, seq))
    		return false
    	}
    	m.RecvSeq++
    	return true
    }
    
    func (m *muxServer) message(msg message) {
    	if debugPrint {
    		fmt.Printf("muxServer: received message %d, length %d\n", msg.Seq, len(msg.Payload))
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  7. logger/sql.go

    				vars[idx] = fmt.Sprintf("%d", reflectValue.Interface())
    			case reflect.Float32, reflect.Float64:
    				vars[idx] = fmt.Sprintf("%.6f", reflectValue.Interface())
    			case reflect.Bool:
    				vars[idx] = fmt.Sprintf("%t", reflectValue.Interface())
    			case reflect.String:
    				vars[idx] = escaper + strings.ReplaceAll(fmt.Sprintf("%v", v), escaper, escaper+escaper) + escaper
    			default:
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Mar 21 08:00:02 GMT 2024
    - 5K bytes
    - Viewed (0)
  8. internal/logger/logger.go

    				entry.Trace.Message = fmt.Sprintf("event(%#v) was not sent to Logger target (%#v): %#v", entry, t, err)
    				consoleTgt.Send(ctx, entry)
    			}
    		}
    	}
    }
    
    // Event sends a event log to  log targets
    func Event(ctx context.Context, subsystem, msg string, args ...interface{}) {
    	if DisableErrorLog {
    		return
    	}
    	entry := logToEntry(ctx, subsystem, fmt.Sprintf(msg, args...), EventKind)
    	sendLog(ctx, entry)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  9. internal/logger/target/console/console.go

    	// No formatting is required for the first entry
    	for i, element := range entry.Trace.Source {
    		trace[i] = fmt.Sprintf("%8v: %s", traceLength-i, element)
    	}
    
    	tagString := ""
    	for key, value := range entry.Trace.Variables {
    		if value != "" {
    			if tagString != "" {
    				tagString += ", "
    			}
    			tagString += fmt.Sprintf("%s=%#v", key, value)
    		}
    	}
    
    	var apiString string
    	if entry.API != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  10. cmd/server-main.go

    	}
    
    	if cf.Options.FTP.Address != "" {
    		ctxt.FTP = append(ctxt.FTP, fmt.Sprintf("address=%s", cf.Options.FTP.Address))
    	}
    	if cf.Options.FTP.PassivePortRange != "" {
    		ctxt.FTP = append(ctxt.FTP, fmt.Sprintf("passive-port-range=%s", cf.Options.FTP.PassivePortRange))
    	}
    
    	if cf.Options.SFTP.Address != "" {
    		ctxt.SFTP = append(ctxt.SFTP, fmt.Sprintf("address=%s", cf.Options.SFTP.Address))
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 34.9K bytes
    - Viewed (1)
Back to top