package
0.9.23
Repository: https://github.com/arriven/db1000n.git
Documentation: pkg.go.dev

# Functions

Execute template, returns empty string in case of errors.
LocalIPV4 returns the first non loopback local ipv4 of the host.
LocalIPV6 returns the first non loopback local ipv4 of the host.
LocalMacAddres returns first valid mac address.
Parse a template.
ParseAndExecute template, returns input string in case of errors.
ParseAndExecuteMapStruct is like ParseAndExecute but takes mapstructure as input.
ParseMapStruct is like Parse but takes mapstructure as input.
RandomIP returns a random ip to spoof packets.
RandomMacAddr returns a random MAC address to spoof packets.
RandomPayload returns a string to spoof ip packets with random payload in specified length.
RandomPayloadByte returns a byte slice to spoof ip packets with random payload in specified length.
RandomPort returns a random port to spoof packets.
ResolveHostIPV4 function gets a string and returns the ipv4 address.
ResolveHostIPV6 function gets a string and returns the ipv4 address.

# Structs

MapStruct is a helper structure to parse configs in a format accepted by mapstructure package.

# Type aliases

ContextKey used to work with context and not trigger linter.