26 lines
462 B
Go
26 lines
462 B
Go
package scan
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
|
|
"git.tcp.direct/perp/shogo/internal/utils"
|
|
)
|
|
|
|
// Return protocols to scan
|
|
func Protocols() {
|
|
// Get results
|
|
results, err := utils.Client.GetProtocols(context.Background())
|
|
if err != nil {
|
|
fmt.Printf("%s: %s\n", utils.Red("Error"), err.Error())
|
|
return
|
|
}
|
|
|
|
// Print results
|
|
utils.Title.Println("Protocols")
|
|
|
|
for key, value := range results {
|
|
fmt.Printf("%-36s %s\n", utils.Green(key), utils.Blue(value))
|
|
}
|
|
}
|