util

package
v0.0.0-...-e457aa1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendToFile

func AppendToFile(filename string, data string)

func CatchPanic

func CatchPanic(err *error, goRoutine string, functionName string)

CatchPanic is used to catch any Panic and log exceptions to Stdout. It will also write the stack trace.

func CheckAndCreateDirectory

func CheckAndCreateDirectory(dirName string) error

func CountOpenFiles

func CountOpenFiles() int

func GetValueFromMap

func GetValueFromMap(key string, mapObj map[string]interface{})

func NowAsUnixMilli

func NowAsUnixMilli() int64

func Read

func Read(s net.Conn) ([]byte, error)

func SetLimit

func SetLimit()

func TurnLoggingOff

func TurnLoggingOff()

TurnLoggingOff sets the logging flag to off.

func Write

func Write(s net.Conn, data []byte) error

func WriteToFile

func WriteToFile(filename string, data string) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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