utils

package module
v0.0.0-...-228d9fb Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SERVER_RECV_LEN = 65000
)

udp config

Variables

This section is empty.

Functions

func DPanic

func DPanic(args ...interface{})

func DPanicf

func DPanicf(template string, args ...interface{})

func Debug

func Debug(args ...interface{})

func Debugf

func Debugf(template string, args ...interface{})

func Error

func Error(args ...interface{})

func Errorf

func Errorf(template string, args ...interface{})

func Execute

func Execute(command string) (string, bool)

Execute : run BASH Command

func Fatal

func Fatal(args ...interface{})

func Fatalf

func Fatalf(template string, args ...interface{})

func Generate

func Generate() uuid.UUID

Generate : create UUID

func GetTimeStamp

func GetTimeStamp()

GetTimeStamp : get timestamp

func Info

func Info(args ...interface{})

func Infof

func Infof(template string, args ...interface{})

func Marshal

func Marshal(obj interface{}) []byte

func NewUuid

func NewUuid() string

func Panic

func Panic(args ...interface{})

func Panicf

func Panicf(template string, args ...interface{})

func PrintCPU

func PrintCPU()

PrintCPU :

func ReadFile

func ReadFile(filePath string, queue chan<- string)

func Run

func Run(name string, arg ...string) string

Run : Execute Commands

func RunWithStdin

func RunWithStdin(name string, arg ...string) string

RunWithStdin : Execute Commands

func SignalWatch

func SignalWatch()

SignalWatch :

func SliceContains

func SliceContains(slice []string, substr string) bool

SliceContains : slice contains substr

func StartUDPServer

func StartUDPServer(port int, output chan string)

StartUDPServer : udp server

func ToBeautifyJson

func ToBeautifyJson(obj interface{}) string

func ToJson

func ToJson(obj interface{}) string

func Unmarshal

func Unmarshal(txt string, obj interface{})

func Warn

func Warn(args ...interface{})

func Warnf

func Warnf(template string, args ...interface{})

func WriteFile

func WriteFile(filePath string, outQ <-chan []string)

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