- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for evalBool (0.14 sec)
-
src/text/template/exec.go
case *parse.ChainNode: return s.validateType(s.evalChainNode(dot, arg, nil, missingVal), typ) } switch typ.Kind() { case reflect.Bool: return s.evalBool(typ, n) case reflect.Complex64, reflect.Complex128: return s.evalComplex(typ, n) case reflect.Float32, reflect.Float64: return s.evalFloat(typ, n)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 21:22:24 UTC 2024 - 32K bytes - Viewed (0) -
src/internal/pkgbits/codes.go
func (c CodeVal) Marker() SyncMarker { return SyncVal } func (c CodeVal) Value() int { return int(c) } // Note: These values are public and cannot be changed without // updating the go/types importers. const ( ValBool CodeVal = iota ValString ValInt64 ValBigInt ValBigRat ValBigFloat ) // A CodeType distinguishes among go/types.Type encodings. type CodeType int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 25 16:15:47 UTC 2022 - 1.7K bytes - Viewed (0) -
src/internal/pkgbits/encoder.go
w.scalar(val) } } func (w *Encoder) scalar(val constant.Value) { switch v := constant.Val(val).(type) { default: errorf("unhandled %v (%v)", val, val.Kind()) case bool: w.Code(ValBool) w.Bool(v) case string: w.Code(ValString) w.String(v) case int64: w.Code(ValInt64) w.Int64(v) case *big.Int: w.Code(ValBigInt) w.bigInt(v) case *big.Rat:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 10 23:26:58 UTC 2022 - 9.6K bytes - Viewed (0) -
src/internal/pkgbits/decoder.go
} return val } func (r *Decoder) scalar() constant.Value { switch tag := CodeVal(r.Code(SyncVal)); tag { default: panic(fmt.Errorf("unexpected scalar tag: %v", tag)) case ValBool: return constant.MakeBool(r.Bool()) case ValString: return constant.MakeString(r.String()) case ValInt64: return constant.MakeInt64(r.Int64()) case ValBigInt: return constant.Make(r.bigInt())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 20:58:46 UTC 2022 - 13.2K bytes - Viewed (0)