- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for StringFind (0.69 sec)
-
src/text/template/funcs.go
errNoComparison = errors.New("missing argument for comparison") ) type kind int const ( invalidKind kind = iota boolKind complexKind intKind floatKind stringKind uintKind ) func basicKind(v reflect.Value) (kind, error) { switch v.Kind() { case reflect.Bool: return boolKind, nil case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 22:23:55 UTC 2024 - 20.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/cost.go
// of estimating the additional comparison cost. if elNode := l.listElementNode(*target); elNode != nil { k := elNode.Type().Kind() if k == types.StringKind || k == types.BytesKind { sz := l.sizeEstimate(elNode) elCost = elCost.Add(sz.MultiplyByCostFactor(common.StringTraversalCostFactor)) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 17:22:44 UTC 2024 - 20.6K bytes - Viewed (0) -
src/encoding/json/decode_test.go
return errors.New("MustNotUnmarshalText was used") } func TestStringKind(t *testing.T) { type stringKind string want := map[stringKind]int{"foo": 42} data, err := Marshal(want) if err != nil { t.Fatalf("Marshal error: %v", err) } var got map[stringKind]int err = Unmarshal(data, &got) if err != nil { t.Fatalf("Unmarshal error: %v", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 16:40:14 UTC 2024 - 67.6K bytes - Viewed (0)