package
0.6.11
Repository: https://github.com/dreadl0ck/netcap.git
Documentation: pkg.go.dev

# Functions

CleanIdent will clean a path.
ClearLine clears the current line of the terminal.
ClearScreen prints ANSI escape to flush screen.
Confirm displays a prompt message to the terminal and returns a bool indicating the user decision.
CopyFile the source file contents to destination file attributes wont be copied and an existing file will be overwritten.
CreateFlowIdent creates a flow identifier string.
CreateFlowIdentFromLayerFlows creates a flow identifier string.
DecodePort decodes the network port directly from a byte slice.
GetBaseLayer resolves a baselayer string to the gopacket.LayerType.
GetDecodeOptions resolves a decode option string to the gopacket.DecodeOptions type.
IsASCII checks if input consists of ascii characters.
ListAllNetworkInterfaces dumps a list of all visible network interfaces to stdout.
Pad the input up to the given number of space characters..
ParseFlowIdent parses the flow identifier.
Pluralize returns the plural for a given noun.
Progress returns the value in percent as a string suffixed with a %.
ReverseFlowIdent reverses the flow identifier.
StringToTime converts a seconds.micro string to a time.Time.
StripQueryString returns an URL without parameters.
TimeToUTC returns a time string in netcap format to a UTC string.
TrimFileExtension returns the netcap file name without file extension.
UnixTimeToUTC returns a time string in netcap format to a UTC string.