types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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