MCPcopy Create free account
hub / github.com/SamNet-dev/snix / modeName

Function modeName

tui/scan.go:379–389  ·  view source on GitHub ↗

Helpers --------------------------------------------------------------

(m scanMode)

Source from the content-addressed store, hash-verified

377// Helpers --------------------------------------------------------------
378
379func modeName(m scanMode) string {
380 switch m {
381 case scanModeSNI:
382 return "SNI scan"
383 case scanModeIP:
384 return "IP scan"
385 case scanModeAll:
386 return "full scan"
387 }
388 return "idle"
389}
390
391func truncate(s string, n int) string {
392 if len(s) <= n {

Callers 1

ViewMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected