helper

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2019 License: MIT Imports: 4 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteCountIEC

func ByteCountIEC(b int64) string

ByteCountIEC convert the byte in input to MB/KB/TB ecc

func ByteCountSI

func ByteCountSI(b int64) string

ByteCountSI convert the byte in input to MB/KB/TB ecc

func Check

func Check(e error)

Check is a helper function which streamlines error checking

func RandomFloat added in v0.0.2

func RandomFloat(min, max float64) float64

RandomFloat initalizate a new seed using the UNIX Nano time and return a float64 between the 2 input value

func RandomInt added in v0.0.2

func RandomInt(min, max int) int

Random initalizate a new seed using the UNIX Nano time and return an integer between the 2 input value

func RecognizeFormat

func RecognizeFormat(input string) (string, string)

RecognizeFormat is delegated to valutate the extension and return the properly Mimetype by a given format type reurn: (Mimetype http compliant,Content-Disposition header value)

Types

This section is empty.

Jump to

Keyboard shortcuts

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