type go.uber.org/atomic.Duration
13 uses
go.uber.org/atomic (current package)
duration.go#L31: type Duration struct {
duration.go#L40: func NewDuration(val time.Duration) *Duration {
duration.go#L41: x := &Duration{}
duration.go#L49: func (x *Duration) Load() time.Duration {
duration.go#L54: func (x *Duration) Store(val time.Duration) {
duration.go#L61: func (x *Duration) CAS(old, new time.Duration) (swapped bool) {
duration.go#L66: func (x *Duration) CompareAndSwap(old, new time.Duration) (swapped bool) {
duration.go#L72: func (x *Duration) Swap(val time.Duration) (old time.Duration) {
duration.go#L77: func (x *Duration) MarshalJSON() ([]byte, error) {
duration.go#L82: func (x *Duration) UnmarshalJSON(b []byte) error {
duration_ext.go#L28: func (d *Duration) Add(delta time.Duration) time.Duration {
duration_ext.go#L33: func (d *Duration) Sub(delta time.Duration) time.Duration {
duration_ext.go#L38: func (d *Duration) String() string {
The pages are generated with Golds v0.6.7. (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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |