types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteCountBinary

func ByteCountBinary(b int64) string

ByteCountBinary: Format byte size to human readable format

func ByteCountDecimal

func ByteCountDecimal(b int64) string

ByteCountDecimal: Format byte size to human readable format

func FindDate

func FindDate(inputString, fmtDate string) []string

Find the date in relation to the given format. (French format like %d, %m, %y or Y%). input fmtDate: "%d-%m-%y %H:%M:%S"

func FormatDate

func FormatDate(fmtDate string, inpDate string) time.Time

Change date format to unix model with pattern like: fmtDate:='%d-%m-%y %H:%M:%S' --> '$y-%m-%d %H:%M:%S' Note: year format must be in lowercase ...

func IsDate

func IsDate(inString string) bool

IsDate: Check if string is date

func IsFloat

func IsFloat(inString string) bool

IsFloat: Check if string is float

func NewDateFormat

func NewDateFormat() []string

Types

type DateEntry

type DateEntry struct {
	InPos  int
	OutPos int
	Val    int
	Str    string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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