- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 301 for typeOf (0.19 sec)
-
statement.go
default: switch rv := reflect.ValueOf(v); rv.Kind() { case reflect.Slice, reflect.Array: if rv.Len() == 0 { writer.WriteString("(NULL)") } else if rv.Type().Elem() == reflect.TypeOf(uint8(0)) { stmt.Vars = append(stmt.Vars, v) stmt.DB.Dialector.BindVarTo(writer, stmt, v) } else { writer.WriteByte('(') for i := 0; i < rv.Len(); i++ { if i > 0 {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Fri Jan 12 08:42:21 UTC 2024 - 19.8K bytes - Viewed (0) -
src/internal/fuzz/fuzz.go
} if err = CheckCorpus(vals, types); err != nil { return nil, err } return vals, nil } // CheckCorpus verifies that the types in vals match the expected types // provided. func CheckCorpus(vals []any, types []reflect.Type) error { if len(vals) != len(types) { return fmt.Errorf("wrong number of values in corpus entry: %d, want %d", len(vals), len(types)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 34.1K bytes - Viewed (0) -
src/syscall/js/js.go
case TypeFunction: return "function" default: panic("bad type") } } func (t Type) isObject() bool { return t == TypeObject || t == TypeFunction } // Type returns the JavaScript type of the value v. It is similar to JavaScript's typeof operator, // except that it returns TypeNull instead of TypeObject for null. func (v Value) Type() Type { switch v.ref { case valueUndefined.ref: return TypeUndefined
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 14:35:26 UTC 2024 - 19.5K bytes - Viewed (0) -
operator/pkg/tpath/tree.go
// possible, returns original scalar value. func tryToUnmarshalStringToYAML(s any) (any, bool) { // If value type is a string it could either be a literal string or a map type passed as a string. Try to unmarshal // to discover it's the latter. vv := s if reflect.TypeOf(vv).Kind() == reflect.String { sv := strings.Split(vv.(string), "\n")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 17.5K bytes - Viewed (0) -
src/database/sql/driver/driver.go
// the value type that can be used to scan types into. For example, the database // column type "bigint" this should return "[reflect.TypeOf](int64(0))". type RowsColumnTypeScanType interface { Rows ColumnTypeScanType(index int) reflect.Type } // RowsColumnTypeDatabaseTypeName may be implemented by [Rows]. It should return the // database system type name without the length. Type names should be uppercase.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 23 09:04:12 UTC 2023 - 20.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/value.go
if it.idx < it.sz { return types.True } return types.False } func (it *baseListIterator) Next() ref.Val { v := it.getter(types.Int(it.idx)) it.idx++ return v } func (it *baseListIterator) Type() ref.Type { return types.IteratorType } func celBool(pred bool) ref.Val { if pred { return types.True } return types.False }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 10 22:05:55 UTC 2022 - 20.5K bytes - Viewed (0) -
src/cmd/cgo/internal/testerrors/ptr_test.go
name: "structof", c: `// Nothing to declare.`, imports: []string{"reflect"}, support: `type MyInt38 int; func (i MyInt38) Get() int { return int(i) }; type Getter38 interface { Get() int }`, body: `t := reflect.StructOf([]reflect.StructField{{Name: "MyInt38", Type: reflect.TypeOf(MyInt38(0)), Anonymous: true}}); v := reflect.New(t).Elem(); v.Interface().(Getter38).Get()`, fail: false, }, {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 03 16:07:49 UTC 2023 - 21.2K bytes - Viewed (0) -
pkg/zdsapi/zds.pb.go
return x.SnapshotSent } return nil } type isWorkloadRequest_Payload interface { isWorkloadRequest_Payload() } type WorkloadRequest_Add struct { Add *AddWorkload `protobuf:"bytes,1,opt,name=add,proto3,oneof"` } type WorkloadRequest_Keep struct { Keep *KeepWorkload `protobuf:"bytes,5,opt,name=keep,proto3,oneof"` } type WorkloadRequest_Del struct {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 02:27:10 UTC 2024 - 25.8K bytes - Viewed (0) -
src/net/rpc/server.go
// - exported method of exported type // - two arguments, both of exported type // - the second argument is a pointer // - one return value, of type error // // It returns an error if the receiver is not an exported type or has // no suitable methods. It also logs the error using package log. // The client accesses each method using a string of the form "Type.Method", // where Type is the receiver's concrete type.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 21.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/decode_test.go
b, err := hex.DecodeString(h) if err != nil { t.Fatal(err) } return b } type test struct { name string modes []cbor.DecMode // most tests should run for all modes in []byte into interface{} // prototype for concrete destination type. if nil, decode into empty interface value. want interface{} assertOnError func(t *testing.T, e error)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 22 18:43:10 UTC 2024 - 25.6K bytes - Viewed (0)