terminalOutput

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearScreen added in v1.0.1

func ClearScreen()

Func - cleanScreen

func GetAvailableSliceItem

func GetAvailableSliceItem(displayTable *[]ntPinger.Packet) int

Get the Slice Idx to inject the Result Object

func OutputFunc

func OutputFunc(outputChan <-chan ntPinger.Packet, len int, recording bool)

Main func for Output

func ScanTablePrint added in v1.0.1

func ScanTablePrint(Ports *[]ntScaner.TcpScanPort, recording bool, displayIdx int, destHost string)

ScanTablePrint function to display the values in a 10x5 table with color based on status (The input item lengh is 50)

func TablePrint

func TablePrint(displayTable *[]ntPinger.Packet, len int, recording bool, displayIdx int)

Table Print Func

func TcpScanOutputFunc added in v1.0.1

func TcpScanOutputFunc(outputChan <-chan *[]ntScaner.TcpScanPort, recording bool, destHost string)

Main func for TCPScanOutput

func TcpScanStat added in v1.0.1

func TcpScanStat(Ports *[]ntScaner.TcpScanPort) (countTested int, countSuccess int, countFail int)

func tcpScanStat

func TruncateString

func TruncateString(s string, maxLength int) string

TruncateString truncates a string to a maximum length and appends "..." if it exceeds the max length

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳