common

package
v0.0.0-...-9c5febd Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeFileMD5

func ComputeFileMD5(file *os.File) []byte

ComputeFileMD5 hash sum for file

func ContextUpMessage

func ContextUpMessage(component, message string)

ContextUpMessage print message about up status of component

func ConvertToMD5

func ConvertToMD5(url string) string

ConvertToMD5 receive MD5 sring

func DownloadLink(link string) string

DownloadLink return download path with server name:port

func TimeFormat

func TimeFormat() string

TimeFormat string for project console output time.Now().Format(time.RFC3339) or time.Now().String()

func ValidatePhone

func ValidatePhone(phone string) bool

ValidatePhone check phone mask

Types

This section is empty.

Jump to

Keyboard shortcuts

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