util

package
v0.0.0-...-afa0789 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertDateTime

func ConvertDateTime(dateString string) (time.Time, error)

func DateToEpoch

func DateToEpoch(inputTime time.Time) int64

func ExtractTokenBearerFromHeader

func ExtractTokenBearerFromHeader(r *http.Request) (string, error)

func GetCurrentTime

func GetCurrentTime() time.Time

func NumberToEpoch

func NumberToEpoch(epochInt int64) (time.Time, error)

func StringToEpoch

func StringToEpoch(epochString string) (time.Time, error)

func TimeToStringDateOnly

func TimeToStringDateOnly(t time.Time) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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