util

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package util provides common utility functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff(a, b []string) []string

Diff returns the elements in a that are not in b

func Execute

func Execute(fn func())

Execute a goroutine of a task

func GetDefault

func GetDefault(key, fallback string) string

func GetLeaseDuration

func GetLeaseDuration(ttl interface{}, defaultTTL, maxTTL int) time.Duration

func GetOutboundIP

func GetOutboundIP() net.IP

func GetPublicIP

func GetPublicIP() net.IP

func IsIP

func IsIP(host string) bool

func IsValidDomain

func IsValidDomain(domain string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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