util

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFile

func CreateFile(fsys hackpadfs.FS, file string, data []byte) error

func FileExists

func FileExists(fileSystem hackpadfs.FS, file string) bool

func GetAllBroadcastAddresses

func GetAllBroadcastAddresses() ([]net.IP, error)

func GetCurrentDirectory

func GetCurrentDirectory() (string, error)

func GetFile

func GetFile(fileSystem hackpadfs.FS, fileName string) ([]byte, error)

func GetLocalFS

func GetLocalFS() (hackpadfs.FS, error)

func IPsToStrings

func IPsToStrings(input []net.IP) []string

func StringsToIPs

func StringsToIPs(ips []string) ([]net.IP, error)

Types

type NetworkInterface

type NetworkInterface interface {
	Addrs() ([]net.Addr, error)
	MulticastAddrs() ([]net.Addr, error)
}

Jump to

Keyboard shortcuts

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