time

package
v3.11.41 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseDuration

func ParseDuration(s string) (time.Duration, error)

Types

type Duration

type Duration int64

func (Duration) MarshalJSON added in v3.10.10

func (d Duration) MarshalJSON() ([]byte, error)

func (Duration) MarshalYAML added in v3.10.100

func (d Duration) MarshalYAML() (interface{}, error)

func (*Duration) UnmarshalJSON added in v3.10.10

func (d *Duration) UnmarshalJSON(b []byte) error

func (*Duration) UnmarshalYAML added in v3.10.100

func (d *Duration) UnmarshalYAML(n *yaml.Node) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL