Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 40 for STDOUT (0.14 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    	}
    }
    
    func ExampleQuantityValue() {
    	q := QuantityValue{
    		Quantity: MustParse("1Mi"),
    	}
    	fs := pflag.FlagSet{}
    	fs.SetOutput(os.Stdout)
    	fs.Var(&q, "mem", "sets amount of memory")
    	fs.PrintDefaults()
    	// Output:
    	// --mem quantity   sets amount of memory (default 1Mi)
    }
    
    func TestQuantityUnmarshalCBOR(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  2. src/html/template/escape_test.go

    	}
    }
    
    // This is a test for issue 3272.
    func TestEmptyTemplateHTML(t *testing.T) {
    	page := Must(New("page").ParseFiles(os.DevNull))
    	if err := page.ExecuteTemplate(os.Stdout, "page", "nothing"); err == nil {
    		t.Fatal("expected error")
    	}
    }
    
    type Issue7379 int
    
    func (Issue7379) SomeMethod(x int) string {
    	return fmt.Sprintf("<%d>", x)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 16 03:29:27 UTC 2023
    - 56.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/api_test.go

    		// missing entries
    		// - package names are collected in the Uses map
    		// - identifiers being declared are collected in the Defs map
    		{`package m0; import "os"; func _() { _ = os.Stdout }`, `os`, `<missing>`},
    		{`package m1; import p "os"; func _() { _ = p.Stdout }`, `p`, `<missing>`},
    		{`package m2; const c = 0`, `c`, `<missing>`},
    		{`package m3; type T int`, `T`, `<missing>`},
    		{`package m4; var v int`, `v`, `<missing>`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  4. src/go/types/api_test.go

    		// missing entries
    		// - package names are collected in the Uses map
    		// - identifiers being declared are collected in the Defs map
    		{`package m0; import "os"; func _() { _ = os.Stdout }`, `os`, `<missing>`},
    		{`package m1; import p "os"; func _() { _ = p.Stdout }`, `p`, `<missing>`},
    		{`package m2; const c = 0`, `c`, `<missing>`},
    		{`package m3; type T int`, `T`, `<missing>`},
    		{`package m4; var v int`, `v`, `<missing>`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  5. src/crypto/tls/tls_test.go

    			f.Set(reflect.ValueOf(x509.NewCertPool()))
    		case "ClientSessionCache":
    			f.Set(reflect.ValueOf(NewLRUClientSessionCache(10)))
    		case "KeyLogWriter":
    			f.Set(reflect.ValueOf(io.Writer(os.Stdout)))
    		case "NextProtos":
    			f.Set(reflect.ValueOf([]string{"a", "b"}))
    		case "ServerName":
    			f.Set(reflect.ValueOf("b"))
    		case "ClientAuth":
    			f.Set(reflect.ValueOf(VerifyClientCertIfGiven))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
  6. src/syscall/syscall_windows.go

    	}
    	err = setFilePointerEx(fd, offset, &newoffset, w)
    	return
    }
    
    func Close(fd Handle) (err error) {
    	return CloseHandle(fd)
    }
    
    var (
    	Stdin  = getStdHandle(STD_INPUT_HANDLE)
    	Stdout = getStdHandle(STD_OUTPUT_HANDLE)
    	Stderr = getStdHandle(STD_ERROR_HANDLE)
    )
    
    func getStdHandle(h int) (fd Handle) {
    	r, _ := GetStdHandle(h)
    	return r
    }
    
    const ImplementsGetwd = true
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 52.7K bytes
    - Viewed (0)
  7. src/net/http/fs_test.go

    	child.ExtraFiles = append(child.ExtraFiles, lnf)
    	child.Env = append([]string{"GO_WANT_HELPER_PROCESS=1"}, os.Environ()...)
    	child.Stdout = &buf
    	child.Stderr = &buf
    	if err := child.Start(); err != nil {
    		t.Skipf("skipping; failed to start straced child: %v", err)
    	}
    
    	res, err := Get(fmt.Sprintf("http://%s/%s", ln.Addr(), filename))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go

    	if e != nil {
    		return 0, e
    	}
    	return int64(hi)<<32 + int64(rlo), nil
    }
    
    func Close(fd Handle) (err error) {
    	return CloseHandle(fd)
    }
    
    var (
    	Stdin  = getStdHandle(STD_INPUT_HANDLE)
    	Stdout = getStdHandle(STD_OUTPUT_HANDLE)
    	Stderr = getStdHandle(STD_ERROR_HANDLE)
    )
    
    func getStdHandle(stdhandle uint32) (fd Handle) {
    	r, _ := GetStdHandle(stdhandle)
    	return r
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/rewrite.go

    func noteRule(s string) bool {
    	fmt.Println(s)
    	return true
    }
    
    // countRule increments Func.ruleMatches[key].
    // If Func.ruleMatches is non-nil at the end
    // of compilation, it will be printed to stdout.
    // This is intended to make it easier to find which functions
    // which contain lots of rules matches when developing new rules.
    func countRule(v *Value, key string) bool {
    	f := v.Block.Func
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go

    		leftover.Nsec = int64(nsecrem)
    	}
    	if rv != 0 && rc != 112 {
    		err = Errno(rc)
    	}
    	return err
    }
    
    // End of Nanosleep
    
    var (
    	Stdin  = 0
    	Stdout = 1
    	Stderr = 2
    )
    
    // Do the interface allocations only once for common
    // Errno values.
    var (
    	errEAGAIN error = syscall.EAGAIN
    	errEINVAL error = syscall.EINVAL
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 84.4K bytes
    - Viewed (0)
Back to top