util

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLastWeek added in v0.0.4

func GetLastWeek() (string, string)

GetLastWeek returns the start and end dates for the last 7 days. The end date is yesterday and the start date is 6 days before that. Dates are returned in YYYY-MM-DD format.

func ServiceName

func ServiceName(service string) string

func StartEnd added in v0.0.4

func StartEnd(start, end string) (string, string)

StartEnd returns the start and end dates based on input values. If both start and end are provided, they are returned as is. If either is missing, it returns the date range for the last week.

func To2dp added in v0.0.3

func To2dp(s string) string

func ToInt

func ToInt(s string) int

func ToJst

func ToJst(t string) string

ToJst converts an RFC3339 timestamp to Japan Standard Time (JST). Returns the time formatted as YYYY-MM-DDThh:mm:ss-0700.

func ToLowers added in v0.0.5

func ToLowers(s []string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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