utils

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOutBoundIP

func GetOutBoundIP() (ip string, err error)

func GetPrivateIP

func GetPrivateIP() (string, error)

func GetPublicIP

func GetPublicIP() (string, error)

func InSliceString

func InSliceString(sl []string, st string) bool

InSliceString returns true if a string exists in a slice of strings. This temporary and should be replaced with a function from the new go slices package in 1.19 when available. https://github.com/golang/go/issues/45955

func JoinStrBase

func JoinStrBase(sep string, elems []string) string

func JoinStrings

func JoinStrings(elems ...string) string

func TopicMatch

func TopicMatch(filter, topic string, handleSharedSubscription bool) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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