reflect.Value.Bool (method)
51 uses
reflect (current package)
value.go#L281: func (v Value) Bool() bool {
value.go#L1103: return !v.Bool()
database/sql
convert.go#L516: return strconv.FormatBool(rv.Bool())
convert.go#L532: return strconv.AppendBool(buf, rv.Bool()), true
database/sql/driver
types.go#L279: return rv.Bool(), nil
encoding/asn1
marshal.go#L481: if v.Bool() {
encoding/binary
binary.go#L636: e.bool(v.Bool())
encoding/gob
encode.go#L175: b := v.Bool()
encode.go#L446: return !val.Bool()
encoding/json
encode.go#L346: return !v.Bool()
encode.go#L541: if v.Bool() {
encoding/xml
marshal.go#L765: return strconv.FormatBool(val.Bool()), nil, nil
marshal.go#L868: if err := emit(p, strconv.AppendBool(scratch[:0], vf.Bool())); err != nil {
marshal.go#L1047: return !v.Bool()
fmt
print.go#L743: p.fmtBool(f.Bool(), verb)
github.com/aws/aws-sdk-go/private/protocol/json/jsonutil
build.go#L203: if value.Bool() {
github.com/google/go-cmp/cmp
compare.go#L270: s.report(vx.Bool() == vy.Bool(), 0)
compare.go#L349: return f.Call([]reflect.Value{x, y})[0].Bool()
compare.go#L359: want := f.Call([]reflect.Value{x, y})[0].Bool()
compare.go#L360: if !got.IsValid() || got.Bool() != want {
report_reflect.go#L157: return textLine(fmt.Sprint(v.Bool()))
github.com/google/go-cmp/cmp/cmpopts
ignore.go#L169: if vx.IsValid() && vf.Call([]reflect.Value{vx})[0].Bool() {
ignore.go#L172: if vy.IsValid() && vf.Call([]reflect.Value{vy})[0].Bool() {
ignore.go#L198: if vx.IsValid() && vf.Call([]reflect.Value{k, vx})[0].Bool() {
ignore.go#L201: if vy.IsValid() && vf.Call([]reflect.Value{k, vy})[0].Bool() {
sort.go#L82: return ss.fnc.Call([]reflect.Value{vx, vy})[0].Bool()
sort.go#L146: return ms.fnc.Call([]reflect.Value{vx, vy})[0].Bool()
github.com/google/go-cmp/cmp/internal/value
sort.go#L39: return !x.Bool() && y.Bool()
zero.go#L17: return v.Bool() == false
github.com/imdario/mergo
mergo.go#L41: return !v.Bool()
github.com/jackc/pgtype
convert.go#L82: convVal := refVal.Bool()
go.opentelemetry.io/otel/label
kv.go#L120: return Bool(k, rv.Bool())
golang.org/x/crypto/ssh
messages.go#L514: if field.Bool() {
google.golang.org/api/internal/gensupport
json.go#L200: return !v.Bool()
google.golang.org/protobuf/internal/descfmt
stringer.go#L230: isZero = rv.Bool() == false
google.golang.org/protobuf/internal/impl
codec_map.go#L291: return !keys[i].Bool() && keys[j].Bool()
convert.go#L155: return pref.ValueOfBool(v.Bool())
message_reflect_field.go#L250: return rv.Bool()
gopkg.in/yaml.v2
encode.go#L339: if in.Bool() {
sorter.go#L91: if v.Bool() {
sorter.go#L110: return !a.Bool() && b.Bool()
yaml.go#L452: return !v.Bool()
internal/fmtsort
sort.go#L124: a, b := aVal.Bool(), bVal.Bool()
text/template
exec.go#L317: truth = val.Bool()
funcs.go#L483: truth = arg1.Bool() == arg.Bool()
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |