Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnyToStruct ¶
func LookupExecutable ¶
LookupExecutable returns the first executable path found for the given candidates.
Types ¶
type Duration ¶
Duration is a new type based on time.Duration that allows for marshalling/unmarshalling to/from a human-readable string format (e.g., "1h30m").
func (Duration) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Duration) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface. This implementation can unmarshal both the numeric (nanoseconds) and string formats.
Click to show internal directories.
Click to hide internal directories.