util

package
v0.0.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(path string) bool

func FileName

func FileName(path string) (string, string)

func FindRandom

func FindRandom(min, max int) int

func LocalAddresses

func LocalAddresses() ([]string, error)

Parses a list of usable local IP addresses

func Logger

func Logger() *logging.Logger

Creates a new file and STDOUT logger with short package, function name, and logging level prefixed to messages.

func PreferredLocalAddress

func PreferredLocalAddress() net.IP

Performs a logical UDP connection to an endpoint that does not need to exist and returns the local IP address that was used to perform the connection.

func RandomSeed

func RandomSeed() int

func X509SerialNumber

func X509SerialNumber() (*big.Int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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