package xtime

import "git.sr.ht/~jamesponddotco/xstd-go/xtime"

Package xtime provides functions and utilities that extend Go's standard time package.

Index

Types

type Duration

type Duration time.Duration

Duration is a wrapper for time.Duration which supports JSON unmarshalling from a string.

func (*Duration) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface.

Source Files

duration.go xtime.go

Version
v0.13.1 (latest)
Published
Jan 29, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
4 days ago

Tools for package owners.