duration

package
v1.6.0-gts Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeserializeDuration

func DeserializeDuration(this interface{}) (time.Duration, error)

DeserializeDuration creates duration value from an interface representation that has been unmarshalled from a text or binary format.

func LessDuration

func LessDuration(lhs, rhs time.Duration) bool

LessDuration returns true if the left duration value is less than the right value.

func SerializeDuration

func SerializeDuration(this time.Duration) (interface{}, error)

SerializeDuration converts a duration value to an interface representation suitable for marshalling into a text or binary format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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