Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 462 for original (0.12 sec)

  1. src/cmd/gofmt/gofmt.go

    		fmt.Fprintf(os.Stderr, "gofmt: %s: error restoring file to original: %v; backup in %s\n", filename, err, bakname)
    	}
    
    	n, err := fout.Write(formatted)
    	if err == nil && int64(n) < size {
    		err = fout.Truncate(int64(n))
    	}
    
    	if err != nil {
    		// Rewriting the file failed.
    
    		if n == 0 {
    			// Original file unchanged.
    			os.Remove(bakname)
    			return err
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  2. src/cmd/go/internal/web/http.go

    // securityPreservingHTTPClient returns a client that is like the original
    // but rejects redirects to plain-HTTP URLs if the original URL was secure.
    func securityPreservingHTTPClient(original *http.Client) *http.Client {
    	c := new(http.Client)
    	*c = *original
    	c.CheckRedirect = func(req *http.Request, via []*http.Request) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 10 17:34:27 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  3. src/os/readfrom_linux_test.go

    	handled bool
    	err     error
    
    	original func(dst, src *poll.FD, remain int64) (int64, bool, error)
    }
    
    func (h *spliceFileHook) install() {
    	h.original = *PollSpliceFile
    	*PollSpliceFile = func(dst, src *poll.FD, remain int64) (int64, bool, error) {
    		h.called = true
    		h.dstfd = dst.Sysfd
    		h.srcfd = src.Sysfd
    		h.remain = remain
    		h.written, h.handled, h.err = h.original(dst, src, remain)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  4. src/slices/iter.go

    	s := Collect(seq)
    	SortFunc(s, cmp)
    	return s
    }
    
    // SortedStableFunc collects values from seq into a new slice.
    // It then sorts the slice while keeping the original order of equal elements,
    // using the comparison function to compare elements.
    // It returns the new slice.
    func SortedStableFunc[E any](seq iter.Seq[E], cmp func(E, E) int) []E {
    	s := Collect(seq)
    	SortStableFunc(s, cmp)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:40:32 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. src/crypto/x509/pkcs8_test.go

    		if err != nil {
    			t.Errorf("%s: failed to marshal into PKCS#8: %s", test.name, err)
    			continue
    		}
    		if !bytes.Equal(derBytes, reserialised) {
    			t.Errorf("%s: marshaled PKCS#8 didn't match original: got %x, want %x", test.name, reserialised, derBytes)
    			continue
    		}
    
    		if ecKey, isEC := privKey.(*ecdsa.PrivateKey); isEC {
    			ecdhKey, err := ecKey.ECDH()
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 19 16:45:10 UTC 2022
    - 9K bytes
    - Viewed (0)
  6. src/go/types/object_test.go

    // the same Func Object as the original method. See also go.dev/issue/34421.
    func TestEmbeddedMethod(t *testing.T) {
    	const src = `package p; type I interface { error }`
    	pkg := mustTypecheck(src, nil, nil)
    
    	// get original error.Error method
    	eface := Universe.Lookup("error")
    	orig, _, _ := LookupFieldOrMethod(eface.Type(), false, nil, "Error")
    	if orig == nil {
    		t.Fatalf("original error.Error not found")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. src/cmd/dist/README

    in practice any release ≥ Go 1.20.6 but < Go 1.x will work as the bootstrap base.
    Releases ≥ Go 1.x are very likely to work as well.
    
    See https://go.dev/s/go15bootstrap for more details about the original bootstrap
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 25 17:20:22 UTC 2023
    - 1K bytes
    - Viewed (0)
  8. src/net/main_windows_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package net
    
    import "internal/poll"
    
    var (
    	// Placeholders for saving original socket system calls.
    	origWSASocket   = wsaSocketFunc
    	origClosesocket = poll.CloseFunc
    	origConnect     = connectFunc
    	origConnectEx   = poll.ConnectExFunc
    	origListen      = listenFunc
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:36:30 UTC 2023
    - 1K bytes
    - Viewed (0)
  9. src/internal/types/testdata/fixedbugs/issue59740.go

    func f(F[int])      {}
    func g[T any](F[T]) {}
    
    func _() {
    	g(f /* ERROR "type func(F[int]) of f does not match F[T] (cannot infer T)" */) // type inference/unification must not panic
    }
    
    // original test case from issue
    
    type List[T any] func(T, func(T, List[T]) T) T
    
    func nil[T any](n T, _ List[T]) T        { return n }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 12:32:24 UTC 2023
    - 800 bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/trim.go

    		}
    		// If the original block contained u = φ(u0, u1, ..., un) and
    		// the current phi is
    		//    v = φ(v0, v1, ..., u, ..., vk)
    		// then the merged phi is
    		//    v = φ(v0, v1, ..., u0, ..., vk, u1, ..., un)
    		v.SetArg(i, u.Args[0])
    		v.AddArgs(u.Args[1:]...)
    	} else {
    		// If the original block contained u = φ(u0, u1, ..., un) and
    		// the current phi is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 4.2K bytes
    - Viewed (0)
Back to top