Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 5,349 for fmtE (0.18 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/etcd3/logger.go

    	klog.WarningDepth(klogWrapperDepth, fmt.Sprintln(args...))
    }
    
    func (klogWrapper) Warningf(format string, args ...interface{}) {
    	klog.WarningDepth(klogWrapperDepth, fmt.Sprintf(format, args...))
    }
    
    func (klogWrapper) Error(args ...interface{}) {
    	klog.ErrorDepth(klogWrapperDepth, args...)
    }
    
    func (klogWrapper) Errorln(args ...interface{}) {
    	klog.ErrorDepth(klogWrapperDepth, fmt.Sprintln(args...))
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 24 10:13:50 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  2. pkg/config/validation/validation.go

    			if k == "" {
    				errs = appendErrors(errs,
    					fmt.Errorf("empty key is not supported in selector: %q", fmt.Sprintf("%s=%s", k, v)))
    			}
    			if strings.Contains(k, "*") || strings.Contains(v, "*") {
    				errs = appendErrors(errs,
    					fmt.Errorf("wildcard is not supported in selector: %q", fmt.Sprintf("%s=%s", k, v)))
    			}
    		}
    		if len(selector.Labels) == 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
  3. src/reflect/example_test.go

    import (
    	"bytes"
    	"encoding/json"
    	"fmt"
    	"io"
    	"os"
    	"reflect"
    )
    
    func ExampleKind() {
    	for _, v := range []any{"hi", 42, func() {}} {
    		switch v := reflect.ValueOf(v); v.Kind() {
    		case reflect.String:
    			fmt.Println(v.String())
    		case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
    			fmt.Println(v.Int())
    		default:
    			fmt.Printf("unhandled kind %s", v.Kind())
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 20:04:36 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  4. 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)
  5. test/stringrange.go

    		r, size := utf8.DecodeRuneInString(s[i:len(s)]) // check it another way
    		if i != offset {
    			fmt.Printf("unexpected offset %d not %d\n", i, offset)
    			ok = false
    		}
    		if r != expect[cnum] {
    			fmt.Printf("unexpected rune %d from DecodeRuneInString: %x not %x\n", i, r, expect[cnum])
    			ok = false
    		}
    		if c != expect[cnum] {
    			fmt.Printf("unexpected rune %d from range: %x not %x\n", i, r, expect[cnum])
    			ok = false
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 08 21:01:23 UTC 2012
    - 1.5K bytes
    - Viewed (0)
  6. test/divide.go

    // Test divide corner cases.
    
    package main
    
    import "fmt"
    
    func f8(x, y, q, r int8) {
    	if t := x / y; t != q {
    		fmt.Printf("%d/%d = %d, want %d\n", x, y, t, q)
    		panic("divide")
    	}
    	if t := x % y; t != r {
    		fmt.Printf("%d%%%d = %d, want %d\n", x, y, t, r)
    		panic("divide")
    	}
    }
    
    func f16(x, y, q, r int16) {
    	if t := x / y; t != q {
    		fmt.Printf("%d/%d = %d, want %d\n", x, y, t, q)
    		panic("divide")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.2K bytes
    - Viewed (0)
  7. cmd/genman/gen_kube_man.go

    	printOptions(out, command)
    
    	if len(command.Example) > 0 {
    		fmt.Fprintf(out, "# EXAMPLE\n")
    		fmt.Fprintf(out, "```\n%s\n```\n", command.Example)
    	}
    
    	if len(command.Commands()) > 0 || len(parent) > 0 {
    		fmt.Fprintf(out, "# SEE ALSO\n")
    		if len(parent) > 0 {
    			fmt.Fprintf(out, "**%s(1)**, ", dparent)
    		}
    		for _, c := range command.Commands() {
    			fmt.Fprintf(out, "**%s-%s(1)**, ", dname, c.Name())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 05 12:03:09 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/conflict.go

    		return fmt.Sprintf("%q", manager)
    	}
    	managerStr := fmt.Sprintf("%q", encodedManager.Manager)
    	if encodedManager.Subresource != "" {
    		managerStr = fmt.Sprintf("%s with subresource %q", managerStr, encodedManager.Subresource)
    	}
    	if encodedManager.Operation == metav1.ManagedFieldsOperationUpdate {
    		if encodedManager.Time == nil {
    			return fmt.Sprintf("%s using %v", managerStr, encodedManager.APIVersion)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  9. src/cmd/link/linkbig_test.go

    	fmt.Fprintf(&w, "\t\"os\"\n")
    	fmt.Fprintf(&w, "\t\"fmt\"\n")
    	fmt.Fprintf(&w, ")\n\n")
    
    	for i := 0; i < FN; i++ {
    		fmt.Fprintf(&w, "func bigfn%d()\n", i)
    	}
    	fmt.Fprintf(&w, "\nfunc main() {\n")
    
    	// There are lots of dummy code generated in the .s files just to generate a lot
    	// of text. Link them in but guard their call so their code is not executed but
    	// the main part of the program can be run.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:22:14 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  10. src/mime/example_test.go

    // license that can be found in the LICENSE file.
    
    package mime_test
    
    import (
    	"bytes"
    	"fmt"
    	"io"
    	"mime"
    )
    
    func ExampleWordEncoder_Encode() {
    	fmt.Println(mime.QEncoding.Encode("utf-8", "¡Hola, señor!"))
    	fmt.Println(mime.QEncoding.Encode("utf-8", "Hello!"))
    	fmt.Println(mime.BEncoding.Encode("UTF-8", "¡Hola, señor!"))
    	fmt.Println(mime.QEncoding.Encode("ISO-8859-1", "Caf\xE9"))
    	// Output:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 18:41:18 UTC 2020
    - 2.9K bytes
    - Viewed (0)
Back to top