type github.com/gotd/log.Value
24 uses
github.com/gotd/log (current package)
attr.go#L30: Value Value
attr.go#L38: type Value struct {
attr.go#L46: func (v Value) Kind() Kind { return v.kind }
attr.go#L49: func (v Value) Int64() int64 { return int64(v.num) }
attr.go#L52: func (v Value) Uint64() uint64 { return v.num }
attr.go#L55: func (v Value) Float64() float64 { return math.Float64frombits(v.num) }
attr.go#L58: func (v Value) Bool() bool { return v.num != 0 }
attr.go#L61: func (v Value) Duration() time.Duration { return time.Duration(int64(v.num)) }
attr.go#L64: func (v Value) Time() time.Time {
attr.go#L70: func (v Value) Error() error {
attr.go#L76: func (v Value) Group() []Attr {
attr.go#L82: func (v Value) Any() any {
attr.go#L109: func (v Value) String() string {
attr.go#L139: return Attr{Key: key, Value: Value{kind: KindString, s: value}}
attr.go#L149: return Attr{Key: key, Value: Value{kind: KindInt64, num: uint64(value)}}
attr.go#L154: return Attr{Key: key, Value: Value{kind: KindUint64, num: value}}
attr.go#L159: return Attr{Key: key, Value: Value{kind: KindFloat64, num: math.Float64bits(value)}}
attr.go#L168: return Attr{Key: key, Value: Value{kind: KindBool, num: n}}
attr.go#L173: return Attr{Key: key, Value: Value{kind: KindDuration, num: uint64(value)}}
attr.go#L178: return Attr{Key: key, Value: Value{kind: KindTime, a: value}}
attr.go#L184: return Attr{Key: "error", Value: Value{kind: KindError, a: err}}
attr.go#L195: return Attr{Key: key, Value: Value{kind: KindError, a: err}}
attr.go#L211: return Attr{Key: key, Value: Value{kind: KindGroup, a: attrs}}
attr.go#L217: return Attr{Key: key, Value: Value{kind: KindAny, a: value}}
 |
The pages are generated with Golds v0.8.4. (GOOS=linux 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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |