netutil

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(dstName, srcName string) (err error)

func FirstUpper

func FirstUpper(s string) string

func InArray

func InArray(arr []string, str string) bool

func InArrayGeneric

func InArrayGeneric(arr []string, str string) bool

func IpMask2CIDR

func IpMask2CIDR(ip, mask string) string

func IpMaskToCIDR

func IpMaskToCIDR(ipMask string) string

func MakeMasterSecret

func MakeMasterSecret() ([]byte, error)

func Max

func Max(init int, other ...int) int

func Min

func Min(init int, other ...int) int

func RemoveBetween

func RemoveBetween(input, start, end string) string

func ResolvePacket

func ResolvePacket(packet []byte) (string, uint16, string, uint16)

func SetCommonHeader

func SetCommonHeader(req *http.Request, agentName, agentVersion string, ciscoCompat bool)

Types

type Record

type Record struct {
	Filename string
	Contents []string
}

func NewRecord

func NewRecord(filename string) *Record

func (*Record) Write

func (r *Record) Write(content string, prepend bool) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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