Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for preferGo (0.11 sec)

  1. src/net/resolverdialfunc_test.go

    import (
    	"bytes"
    	"context"
    	"errors"
    	"fmt"
    	"reflect"
    	"slices"
    	"testing"
    	"time"
    
    	"golang.org/x/net/dns/dnsmessage"
    )
    
    func TestResolverDialFunc(t *testing.T) {
    	r := &Resolver{
    		PreferGo: true,
    		Dial: newResolverDialFunc(&resolverDialHandler{
    			StartDial: func(network, address string) error {
    				t.Logf("StartDial(%q, %q) ...", network, address)
    				return nil
    			},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. src/net/lookup_windows_test.go

    			var name string
    			if def {
    				name = "default/"
    			} else {
    				name = "go/"
    			}
    			t.Run(name+server, func(t *testing.T) {
    				t.Parallel()
    				r := DefaultResolver
    				if !def {
    					r = &Resolver{PreferGo: true}
    				}
    				fn(t, r, server)
    			})
    		}
    	}
    }
    
    func TestNSLookupMX(t *testing.T) {
    	testenv.MustHaveExternalNetwork(t)
    
    	testLookup(t, func(t *testing.T, r *Resolver, server string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. src/net/addrselect.go

    		return preferDA
    	}
    	if !SourceDA.IsValid() {
    		return preferDB
    	}
    
    	// Rule 2: Prefer matching scope.
    	// If Scope(DA) = Scope(Source(DA)) and Scope(DB) <> Scope(Source(DB)),
    	// then prefer DA.  Similarly, if Scope(DA) <> Scope(Source(DA)) and
    	// Scope(DB) = Scope(Source(DB)), then prefer DB.
    	if attrDA.Scope == attrSourceDA.Scope && attrDB.Scope != attrSourceDB.Scope {
    		return preferDA
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 00:24:06 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/dependencies/sub-dependencies.md

        ```
    
    === "Python 3.10 non-Annotated"
    
        !!! tip
            Prefer to use the `Annotated` version if possible.
    
        ```Python hl_lines="6-7"
        {!> ../../../docs_src/dependencies/tutorial005_py310.py!}
        ```
    
    === "Python 3.8 non-Annotated"
    
        !!! tip
            Prefer to use the `Annotated` version if possible.
    
        ```Python hl_lines="8-9"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 23:43:13 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. docs/es/docs/tutorial/cookie-params.md

        ```
    
    === "Python 3.10+ non-Annotated"
    
        !!! tip
            Prefer to use the `Annotated` version if possible.
    
        ```Python hl_lines="1"
        {!> ../../../docs_src/cookie_params/tutorial001_py310.py!}
        ```
    
    === "Python 3.8+ non-Annotated"
    
        !!! tip
            Prefer to use the `Annotated` version if possible.
    
        ```Python hl_lines="3"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Apr 19 19:30:26 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. cmd/erasure-decode.go

    // These will be chosen before others.
    func (p *parallelReader) preferReaders(prefer []bool) {
    	if len(prefer) != len(p.orgReaders) {
    		return
    	}
    	// Copy so we don't change our input.
    	tmp := make([]io.ReaderAt, len(p.orgReaders))
    	copy(tmp, p.orgReaders)
    	p.readers = tmp
    	// next is the next non-preferred index.
    	next := 0
    	for i, ok := range prefer {
    		if !ok || p.readers[i] == nil {
    			continue
    		}
    		if i == next {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 21 14:36:21 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/path-params-numeric-validations.md

        ```
    
    === "Python 3.10+ non-Annotated"
    
        !!! tip
            Prefer to use the `Annotated` version if possible.
    
        ```Python hl_lines="1"
        {!> ../../../docs_src/path_params_numeric_validations/tutorial001_py310.py!}
        ```
    
    === "Python 3.8+ non-Annotated"
    
        !!! tip
            Prefer to use the `Annotated` version if possible.
    
        ```Python hl_lines="3"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Jun 01 21:05:52 UTC 2024
    - 9K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/body-multiple-params.md

        ```
    
    === "Python 3.10+ non-Annotated"
    
        !!! tip
            Prefer to use the `Annotated` version if possible.
    
        ```Python hl_lines="17-19"
        {!> ../../../docs_src/body_multiple_params/tutorial001_py310.py!}
        ```
    
    === "Python 3.8+ non-Annotated"
    
        !!! tip
            Prefer to use the `Annotated` version if possible.
    
        ```Python hl_lines="19-21"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Jun 09 02:01:51 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="18"
        {!> ../../../docs_src/dependencies/tutorial006_an.py!}
        ```
    
    === "Python 3.8 non-Annotated"
    
        !!! tip
            Prefer to use the `Annotated` version if possible.
    
        ```Python hl_lines="17"
        {!> ../../../docs_src/dependencies/tutorial006.py!}
        ```
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 23:43:13 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. docs/ko/docs/tutorial/extra-data-types.md

        ```
    
    === "Python 3.10+ non-Annotated"
    
        !!! tip
            Prefer to use the `Annotated` version if possible.
    
        ```Python hl_lines="1  2  11-15"
        {!> ../../../docs_src/extra_data_types/tutorial001_py310.py!}
        ```
    
    === "Python 3.8+ non-Annotated"
    
        !!! tip
            Prefer to use the `Annotated` version if possible.
    
        ```Python hl_lines="1  2  12-16"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 14 02:45:10 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top