utils

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocaleTime          = "15:04:05"
	ISO8601             = "2006-01-02T15:04:05.000"
	Iso8601WithTzOffset = "2006-01-02T15:04:05.000-07:00"
	AbsoluteTime        = "15:04:05.000"
	Datetime            = "2006/01/02-15:04:05"
)

Variables

View Source
var ColorBlue = "\033[34m"
View Source
var ColorCyan = "\033[36m"
View Source
var ColorGray = "\033[37m"
View Source
var ColorGreen = "\033[32m"
View Source
var ColorMagenta = "\033[35m"
View Source
var ColorRed = "\033[31m"
View Source
var ColorReset = "\033[0m"
View Source
var ColorWhite = "\033[97m"
View Source
var ColorYellow = "\033[33m"

Functions

func GetStringDate

func GetStringDate(format string) string

func PaddingString

func PaddingString(s string, pad int) string

func Truncate

func Truncate(s string, k 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