goutilities

package
v1.9.3-beta.9 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHostName

func GetHostName() string

GetHostName : Returns host name of the current machine

func GetOutboundIP

func GetOutboundIP() string

GetOutboundIP : returns preferred outbound ip of the current machine

func RandomInt

func RandomInt(n int) int

RandomInt gives a random int less than the number provided

func RandomInt64

func RandomInt64() int64

RandomInt64 gives a 64bit random number

func RandomIntBetween

func RandomIntBetween(a int, b int) int

RandomIntBetween gives a randon integer between two numbers

func RandomString

func RandomString(strlen int) string

RandomString gives a random string of length = parameter

func RandomUint64

func RandomUint64() uint64

RandomUint64 gives an unsigned 64 bit random number

func RemoveDuplicates

func RemoveDuplicates(a []string) []string

RemoveDuplicates removes duplicates from the slice. It returns a new slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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