util

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//go:embed icon.png
	DefaultIconBytes []byte
)

Functions

func GetBlockedServerList

func GetBlockedServerList() error

func IsBlockedAddress

func IsBlockedAddress(address string) bool

func PointerOf

func PointerOf[T any](v T) *T

Types

type MutexArray

type MutexArray[K comparable] struct {
	List  []K
	Mutex *sync.Mutex
}

func (*MutexArray[K]) Has

func (m *MutexArray[K]) Has(value K) bool

Jump to

Keyboard shortcuts

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