xtypes

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Duration

type Duration time.Duration

func (Duration) MarshalJSON

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

func (Duration) MarshalText

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

func (*Duration) UnmarshalJSON

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

func (*Duration) UnmarshalText

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

type TimeOfDay

type TimeOfDay struct {
	// contains filtered or unexported fields
}

func NewTimeOfDay

func NewTimeOfDay(hour, minute int) TimeOfDay

func ParseTimeOfDay

func ParseTimeOfDay(s string) (t TimeOfDay, err error)

func (TimeOfDay) Hour

func (t TimeOfDay) Hour() int

func (TimeOfDay) MarshalJSON

func (t TimeOfDay) MarshalJSON() ([]byte, error)

func (TimeOfDay) MarshalText

func (t TimeOfDay) MarshalText() ([]byte, error)

func (TimeOfDay) Minute

func (t TimeOfDay) Minute() int

func (TimeOfDay) String

func (t TimeOfDay) String() string

func (*TimeOfDay) UnmarshalJSON

func (t *TimeOfDay) UnmarshalJSON(b []byte) error

func (*TimeOfDay) UnmarshalText

func (t *TimeOfDay) UnmarshalText(b []byte) error

Jump to

Keyboard shortcuts

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