util

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFile

func CreateFile(file string, data []byte) error

func FileExists

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

func GetAllBroadcastAddresses

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

func GetCurrentDirectory

func GetCurrentDirectory() (string, error)

func GetFile

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

func IPsToStrings

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

func StringsToIPs

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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