decoders

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Duration

func Duration() mapstructure.DecodeHookFunc

Duration returns a mapstructure.DecodeHookFunc which supports deoding time.Duration from strings in a format such as "4d3h2m1s". It extends the known mapstructure.StringToTimeDurationHookFunc to support days and weeks aswell.

Types

This section is empty.

Jump to

Keyboard shortcuts

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