util

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateTimeGap

func CalculateTimeGap(startTimeRFC3339, endTimeRFC3339 string) (time.Duration, error)

CalculateTimeGap function calculates the duration between two RFC3339 formatted times

func EndOfDayTime

func EndOfDayTime() string

EndOfDayTime function returns the RFC3339 formatted time for the end of the day

func StartOfDayTime

func StartOfDayTime() string

StartOfDayTime function returns the RFC3339 formatted time for the start of the day

func TruncateWithSuffix

func TruncateWithSuffix(s string, maxLength int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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