func dumpTablePretty(table admin.Routes) { table.SortByPath() if len(table) < 2 { return } fmt.Fprintf(os.Stdout, "%s┐\n", table[0].Path) printPrettySubtable(table[1:], "", 0, StopLevel) }
func dumpTableVerbose(table admin.Routes) { table.SortByQuality() k := 1 for _, v := range table { if v.Link >= 1 { fmt.Fprintf(os.Stdout, "%03d IP: %-39v -- Version: %d -- Path: %s -- Link: %s\n", k, v.IP, v.Version, v.Path, v.Link) k++ } } }