utils

package
v0.0.0-...-0721423 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBuf

func GetBuf(size int) []byte

func Join

func Join(local io.ReadWriter, remote io.ReadWriter) (bytesTransferred int64)

Join joins the two readers. Both are piped to each other and closed once everything has been read from each and written to the other.

func PutBuf

func PutBuf(buf []byte)

func ToNetIpAddr

func ToNetIpAddr(ip net.IP) (netip.Addr, error)

func ToNetIpPrefix

func ToNetIpPrefix(ipNet net.IPNet) (netip.Prefix, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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