Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 2,159 for fprint (0.12 sec)

  1. src/cmd/internal/obj/util.go

    			fmt.Fprintf(w, "$%d", a.Offset)
    		} else {
    			fmt.Fprintf(w, "$%d-%d", a.Offset, a.Val.(int32))
    		}
    
    	case TYPE_FCONST:
    		str := fmt.Sprintf("%.17g", a.Val.(float64))
    		// Make sure 1 prints as 1.0
    		if !strings.ContainsAny(str, ".e") {
    			str += ".0"
    		}
    		fmt.Fprintf(w, "$(%s)", str)
    
    	case TYPE_SCONST:
    		fmt.Fprintf(w, "$%q", a.Val.(string))
    
    	case TYPE_ADDR:
    		io.WriteString(w, "$")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/printer.go

    		p.print(_Func)
    		p.printSignature(n)
    
    	case *InterfaceType:
    		p.print(_Interface)
    		if p.linebreaks && len(n.MethodList) > 1 {
    			p.print(blank)
    			p.print(_Lbrace)
    			p.print(newline, indent)
    			p.printMethodList(n.MethodList)
    			p.print(outdent, newline)
    		} else {
    			p.print(_Lbrace)
    			p.printMethodList(n.MethodList)
    		}
    		p.print(_Rbrace)
    
    	case *MapType:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 24 07:17:27 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  3. internal/rest/client.go

    		if err != nil {
    			return
    		}
    	}
    
    	// Write response to trace output.
    	_, err = fmt.Fprint(c.TraceOutput, strings.TrimSuffix(string(respTrace), "\r\n"))
    	if err != nil {
    		return
    	}
    
    	// Ends the http dump.
    	_, err = fmt.Fprintln(c.TraceOutput, "---------END-HTTP---------")
    	if err != nil {
    		return
    	}
    
    	// Returns success.
    	return
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  4. src/runtime/align_test.go

    			v.t.Errorf("unchecked field %s %s", v.fset.Position(n.Pos()), key)
    		}
    	default:
    		v.t.Errorf("unchecked atomic address %s %v", v.fset.Position(n.Pos()), v.print(n))
    
    	}
    }
    
    func (v *Visitor) print(n ast.Node) string {
    	var b strings.Builder
    	printer.Fprint(&b, v.fset, n)
    	return b.String()
    }
    
    // buildableFiles returns the list of files in the given directory
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 08 14:52:12 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  5. src/internal/fmtsort/sort_test.go

    		m[chans[i]] = fmt.Sprint(i)
    	}
    	return m
    }
    
    type toy struct {
    	A int // Exported.
    	b int // Unexported.
    }
    
    func TestOrder(t *testing.T) {
    	for _, test := range sortTests {
    		got := sprint(test.data)
    		if got != test.print {
    			t.Errorf("%s: got %q, want %q", reflect.TypeOf(test.data), got, test.print)
    		}
    	}
    }
    
    func TestInterface(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  6. src/math/big/intconv.go

    	case 'b':
    		base = 2
    	case 'o', 'O':
    		base = 8
    	case 'd', 's', 'v':
    		base = 10
    	case 'x', 'X':
    		base = 16
    	default:
    		// unknown format
    		fmt.Fprintf(s, "%%!%c(big.Int=%s)", ch, x.String())
    		return
    	}
    
    	if x == nil {
    		fmt.Fprint(s, "<nil>")
    		return
    	}
    
    	// determine sign character
    	sign := ""
    	switch {
    	case x.neg:
    		sign = "-"
    	case s.Flag('+'): // supersedes ' ' when both specified
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/syntax/parser_test.go

    	if !bytes.Equal(bytes1, bytes2) {
    		fmt.Printf("--- %s ---\n", filename)
    		fmt.Printf("%s\n", bytes1)
    		fmt.Println()
    
    		fmt.Printf("--- %s ---\n", filename)
    		fmt.Printf("%s\n", bytes2)
    		fmt.Println()
    
    		t.Error("printed syntax trees do not match")
    	}
    }
    
    func TestIssue17697(t *testing.T) {
    	_, err := Parse(nil, bytes.NewReader(nil), nil, nil, 0) // return with parser error, don't panic
    	if err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 16:30:19 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  8. pkg/probe/grpc/grpc_test.go

    	})
    	t.Run("Should: return nil error because connection closed", func(t *testing.T) {
    		s := New()
    		server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    			fmt.Fprint(w, "res")
    		}))
    		u := strings.Split(server.URL, ":")
    		assert.Equal(t, 3, len(u))
    
    		port, err := strconv.Atoi(u[2])
    		assert.Equal(t, nil, err)
    
    		// take some time to wait server boot
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Nov 20 00:23:53 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  9. istioctl/pkg/internaldebug/internal-debug.go

    		namespace, serviceAccount, kubeClient, multixds.DefaultOptions)
    	if respErr != nil {
    		return xdsResponses, respErr
    	}
    	_, _ = fmt.Fprint(writer, "error: according to below command list, please check all supported internal debug commands\n")
    	return xdsResponses, nil
    }
    
    func HandlerForDebugErrors(kubeClient kube.CLIClient,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 04:16:55 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/cmd/config.go

    	kinds := []string{}
    	cmd := &cobra.Command{
    		Use:   fmt.Sprintf("%s-defaults", action),
    		Short: fmt.Sprintf("Print default %s configuration, that can be used for 'kubeadm %s'", action, action),
    		Long: fmt.Sprintf(dedent.Dedent(`
    			This command prints objects such as the default %s configuration that is used for 'kubeadm %s'.
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 18.9K bytes
    - Viewed (0)
Back to top