utils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatTimeToString

func FormatTimeToString(d time.Duration) string

FormatTimeToString takes a time.Duration and returns a string designed to be worked with by the frontend.

Inverse of ParseStringToTime

func ParseStringToTime

func ParseStringToTime(s string) (time.Duration, error)

ParseStringToTime unserializes a string, usually from the frontend, into a time.Duration.

Inverse of FormatTimeToString.

Types

This section is empty.

Jump to

Keyboard shortcuts

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