Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,694 for u$ (0.07 sec)

  1. src/cmd/compile/internal/types2/under.go

    	}
    
    	var su Type
    	hasString := false
    	if tpar.underIs(func(u Type) bool {
    		if u == nil {
    			return false
    		}
    		if isString(u) {
    			u = NewSlice(universeByte)
    			hasString = true
    		}
    		if su != nil {
    			u = match(su, u)
    			if u == nil {
    				return false
    			}
    		}
    		// su == nil || match(su, u) != nil
    		su = u
    		return true
    	}) {
    		if hasString {
    			return Typ[String]
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 22:34:27 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/telemetry/internal/upload/date.go

    type parsedCache struct {
    	mu sync.Mutex
    	m  map[string]*counter.File
    }
    
    func (u *uploader) parseCountFile(fname string) (*counter.File, error) {
    	u.cache.mu.Lock()
    	defer u.cache.mu.Unlock()
    	if u.cache.m == nil {
    		u.cache.m = make(map[string]*counter.File)
    	}
    	if f, ok := u.cache.m[fname]; ok {
    		return f, nil
    	}
    	buf, err := os.ReadFile(fname)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:12:15 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. src/flag/example_value_test.go

    		return v.URL.String()
    	}
    	return ""
    }
    
    func (v URLValue) Set(s string) error {
    	if u, err := url.Parse(s); err != nil {
    		return err
    	} else {
    		*v.URL = *u
    	}
    	return nil
    }
    
    var u = &url.URL{}
    
    func ExampleValue() {
    	fs := flag.NewFlagSet("ExampleValue", flag.ExitOnError)
    	fs.Var(&URLValue{u}, "url", "URL to parse")
    
    	fs.Parse([]string{"-url", "https://golang.org/pkg/flag/"})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 21 23:32:53 UTC 2018
    - 845 bytes
    - Viewed (0)
  4. src/unicode/letter_test.go

    			t.Errorf("lower(U+%04X) is U+%04X not U+%04X", u, TurkishCase.ToLower(l), l)
    		}
    		if TurkishCase.ToTitle(u) != u {
    			t.Errorf("title(U+%04X) is U+%04X not U+%04X", u, TurkishCase.ToTitle(u), u)
    		}
    		if TurkishCase.ToTitle(l) != u {
    			t.Errorf("title(U+%04X) is U+%04X not U+%04X", l, TurkishCase.ToTitle(l), u)
    		}
    	}
    }
    
    var simpleFoldTests = []string{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 09 01:46:03 UTC 2023
    - 14.8K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/mod_list_deprecated.txt

    go list -m -u -f {{.Deprecated}} example.com/deprecated/a
    stdout '^in example.com/deprecated/a@v1.9.0$'
    
    # 'go list -m -u' does not show deprecation for the main module.
    go list -m -u
    ! stdout deprecated
    go list -m -u -f '{{if not .Deprecated}}ok{{end}}'
    stdout ok
    
    # 'go list -m -u' does not show a deprecation message for a module that is not
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 17:25:54 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. test/fixedbugs/issue16870.go

    	test(ok, true)
    
    	// Type assertions.
    	var u interface{}
    
    	i, ok = u.(int)
    	test(i, 0)
    	test(ok, false)
    
    	ip, ok = u.(*int)
    	test(ip, (*int)(nil))
    	test(ok, false)
    
    	_, ok = u.(int)
    	test(ok, false)
    
    	u = 42
    	i, ok = u.(int)
    	test(i, 42)
    	test(ok, true)
    
    	_, ok = u.(int)
    	test(ok, true)
    
    	u = &i
    	ip, ok = u.(*int)
    	test(ip, &i)
    	test(ok, true)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 14 22:11:38 UTC 2016
    - 1.7K bytes
    - Viewed (0)
  7. istioctl/pkg/multixds/google.go

    	}
    	i += len(projSeg)
    	j := strings.IndexByte(u.Path[i:], '/')
    	if j == -1 {
    		return nil, fmt.Errorf("webhook URL %s is malformed", u)
    	}
    	ret.gcpProject = u.Path[i : i+j]
    
    	const crSeg = "/ISTIO_META_CLOUDRUN_ADDR/"
    	i += j
    	j = strings.Index(u.Path[i:], crSeg)
    	if j == -1 {
    		return nil, fmt.Errorf("webhook URL %s is missing %s", u, crSeg)
    	}
    	ret.istiod = u.Path[i+j+len(crSeg):]
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 06 03:39:27 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  8. src/mdo/java/WrapperList.java

    import java.util.function.Supplier;
    
    class WrapperList<T, U> extends AbstractList<T> implements Serializable {
        private final Supplier<List<U>> getter;
        private final Consumer<List<U>> setter;
        private final Function<U, T> mapper;
        private final Function<T, U> revMapper;
    
        WrapperList(List<U> list, Function<U, T> mapper, Function<T, U> revMapper) {
            this(() -> list, null, mapper, revMapper);
        }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Mar 01 16:30:18 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/union.go

    	if len(terms) == 0 {
    		panic("empty union")
    	}
    	return &Union{terms}
    }
    
    func (u *Union) Len() int         { return len(u.terms) }
    func (u *Union) Term(i int) *Term { return u.terms[i] }
    
    func (u *Union) Underlying() Type { return u }
    func (u *Union) String() string   { return TypeString(u, nil) }
    
    // A Term represents a term in a Union.
    type Term term
    
    // NewTerm returns a new union term.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 15 16:16:58 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go

    // Before reports whether the time instant t is before u.
    func (t *MicroTime) Before(u *MicroTime) bool {
    	if t != nil && u != nil {
    		return t.Time.Before(u.Time)
    	}
    	return false
    }
    
    // Equal reports whether the time instant t is equal to u.
    func (t *MicroTime) Equal(u *MicroTime) bool {
    	if t == nil && u == nil {
    		return true
    	}
    	if t != nil && u != nil {
    		return t.Time.Equal(u.Time)
    	}
    	return false
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top