tools

package module
v0.0.0-...-5ef962b Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: Apache-2.0 Imports: 7 Imported by: 17

README

tools

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToHex

func ConvertToHex(b byte) string

ConvertToHex returns a hexadecimal string representation of a byte

func HostAddrValidator

func HostAddrValidator(addr string) error

HostAddrValidator parser host address passed as a string, and make sure it follows X.X.X.X:YYZZ format

func MessageHex

func MessageHex(b []byte) string

MessageHex returns Hexadecimal string of a byte slice passed as a parameter

func SetupSignalHandler

func SetupSignalHandler() (stopCh <-chan struct{})
SetupSignalHandler creates and returns a channel. The channel will be closed up on receiving

the interrupt signal (Ctrl-C), if a second interrupt signal is received, the calling program is forced to terminate.

func URLAddrValidation

func URLAddrValidation(addr string) error

URLAddrValidation validates that passed addrress has valid URL formating.

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