func google.golang.org/grpc/internal/grpcutil.div
7 uses
google.golang.org/grpc/internal/grpcutil (current package)
encode_duration.go#L30: func div(d, r time.Duration) int64 {
encode_duration.go#L46: if d := div(t, time.Nanosecond); d <= maxTimeoutValue {
encode_duration.go#L49: if d := div(t, time.Microsecond); d <= maxTimeoutValue {
encode_duration.go#L52: if d := div(t, time.Millisecond); d <= maxTimeoutValue {
encode_duration.go#L55: if d := div(t, time.Second); d <= maxTimeoutValue {
encode_duration.go#L58: if d := div(t, time.Minute); d <= maxTimeoutValue {
encode_duration.go#L62: return strconv.FormatInt(div(t, time.Hour), 10) + "H"
![]() |
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. |