Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for NV (0.17 sec)

  1. test/fixedbugs/issue5231.go

    	Variadic(s ...int) int
    }
    
    func F() {
    	var t T
    	var p *T = &t
    	var i I = p
    
    	nv := t.NotVariadic
    	nv = p.NotVariadic
    	nv = i.NotVariadic
    	var s int = nv([]int{1, 2, 3})
    
    	v := t.Variadic
    	v = p.Variadic
    	v = i.Variadic
    	s = v(1, 2, 3)
    
    	var f1 func([]int) int = nv
    	var f2 func(...int) int = v
    
    	_, _, _ = f1, f2, s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 742 bytes
    - Viewed (0)
  2. test/interface/receiver.go

    // license that can be found in the LICENSE file.
    
    // Test Implicit methods for embedded types and
    // mixed pointer and non-pointer receivers.
    
    package main
    
    type T int
    
    var nv, np int
    
    func (t T) V() {
    	if t != 42 {
    		panic(t)
    	}
    	nv++
    }
    
    func (t *T) P() {
    	if *t != 42 {
    		println(t, *t)
    		panic("fail")
    	}
    	np++
    }
    
    type V interface {
    	V()
    }
    type P interface {
    	P()
    	V()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 06:33:41 UTC 2012
    - 1.3K bytes
    - Viewed (0)
  3. internal/event/rules.go

    func (rules Rules) Difference(rules2 Rules) Rules {
    	nrules := make(Rules)
    
    	for pattern, targetIDSet := range rules {
    		if nv := targetIDSet.Difference(rules2[pattern]); len(nv) > 0 {
    			nrules[pattern] = nv
    		}
    	}
    
    	return nrules
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/cache.go

    	// Used to put slices in sync.Pools without allocation.
    	hdrValueSlice []*[]*Value
    	hdrInt64Slice []*[]int64
    }
    
    func (c *Cache) Reset() {
    	nv := sort.Search(len(c.values), func(i int) bool { return c.values[i].ID == 0 })
    	xv := c.values[:nv]
    	for i := range xv {
    		xv[i] = Value{}
    	}
    	nb := sort.Search(len(c.blocks), func(i int) bool { return c.blocks[i].ID == 0 })
    	xb := c.blocks[:nb]
    	for i := range xb {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 15 23:00:54 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/builder/VirtualPlatformState.java

                    if (requested instanceof ModuleComponentSelector) {
                        String nv = ((ModuleComponentSelector) requested).getVersion();
                        if (version == null || vC.compare(nv, version) < 0) {
                            version = nv;
                        }
                    }
                }
            }
            return version;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  6. clause/expression.go

    			inName = true
    			name = name[:0]
    		} else if v == ' ' || v == ',' || v == ')' || v == '"' || v == '\'' || v == '`' || v == '\r' || v == '\n' || v == ';' {
    			if inName {
    				if nv, ok := namedMap[string(name)]; ok {
    					builder.AddVar(builder, nv)
    				} else {
    					builder.WriteByte('@')
    					builder.WriteString(string(name))
    				}
    				inName = false
    			}
    
    			afterParenthesis = false
    			builder.WriteByte(v)
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Oct 10 06:45:48 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  7. pkg/monitoring/monitoring_test.go

    	if n != "events_total" {
    		return
    	}
    
    	// Get name tag of recorded testSume metric, and record the corresponding hookSum metric.
    	var nv string
    	for _, tag := range tags {
    		if tag.Key() == name {
    			nv = tag.Value()
    			break
    		}
    	}
    	hookSum.With(name.Value(nv)).Record(value)
    }
    
    func BenchmarkCounter(b *testing.B) {
    	monitortest.New(b)
    	b.Run("no labels", func(b *testing.B) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 13 16:04:48 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  8. src/net/http/header.go

    }
    
    // Clone returns a copy of h or nil if h is nil.
    func (h Header) Clone() Header {
    	if h == nil {
    		return nil
    	}
    
    	// Find total number of values.
    	nv := 0
    	for _, vv := range h {
    		nv += len(vv)
    	}
    	sv := make([]string, nv) // shared backing array for headers' values
    	h2 := make(Header, len(h))
    	for k, vv := range h {
    		if vv == nil {
    			// Preserve nil values. ReverseProxy distinguishes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. pkg/kube/kclient/crdwatcher.go

    		log.Errorf("CRD %v version %v invalid; ignoring: %v", crd.Name, bv, err)
    		return false
    	}
    	// Ignore RC tags, etc. We 'round up' those.
    	nv, err := fv.SetPrerelease("")
    	if err != nil {
    		log.Errorf("CRD %v version %v invalid; ignoring: %v", crd.Name, bv, err)
    		return false
    	}
    	fv = &nv
    	if fv.LessThan(mv) {
    		log.Infof("CRD %v version %v is below minimum version %v, ignoring", crd.Name, fv, mv)
    		return false
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. istioctl/pkg/checkinject/checkinject.go

    					}
    				case metav1.LabelSelectorOpNotIn:
    					v, ok := podLabels[me.Key]
    					if !ok {
    						continue
    					}
    					for _, nv := range me.Values {
    						if nv == v {
    							return fmt.Sprintf("Pod has %s=%s label, preventing injection", me.Key, v), false
    						}
    					}
    				}
    			}
    		} else if podMatched {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top