update dependency github.com/rodaine/table to v1.0.1

This commit is contained in:
fatedier
2021-06-18 17:28:54 +08:00
parent 95cd9ab900
commit a98a9616f6
3 changed files with 11 additions and 12 deletions

View File

@@ -89,7 +89,7 @@ func status(clientCfg config.ClientCommonConf) error {
fmt.Println("Proxy Status...")
if len(res.TCP) > 0 {
fmt.Printf("TCP")
fmt.Println("TCP")
tbl := table.New("Name", "Status", "LocalAddr", "Plugin", "RemoteAddr", "Error")
for _, ps := range res.TCP {
tbl.AddRow(ps.Name, ps.Status, ps.LocalAddr, ps.Plugin, ps.RemoteAddr, ps.Err)
@@ -98,7 +98,7 @@ func status(clientCfg config.ClientCommonConf) error {
fmt.Println("")
}
if len(res.UDP) > 0 {
fmt.Printf("UDP")
fmt.Println("UDP")
tbl := table.New("Name", "Status", "LocalAddr", "Plugin", "RemoteAddr", "Error")
for _, ps := range res.UDP {
tbl.AddRow(ps.Name, ps.Status, ps.LocalAddr, ps.Plugin, ps.RemoteAddr, ps.Err)
@@ -107,7 +107,7 @@ func status(clientCfg config.ClientCommonConf) error {
fmt.Println("")
}
if len(res.HTTP) > 0 {
fmt.Printf("HTTP")
fmt.Println("HTTP")
tbl := table.New("Name", "Status", "LocalAddr", "Plugin", "RemoteAddr", "Error")
for _, ps := range res.HTTP {
tbl.AddRow(ps.Name, ps.Status, ps.LocalAddr, ps.Plugin, ps.RemoteAddr, ps.Err)
@@ -116,7 +116,7 @@ func status(clientCfg config.ClientCommonConf) error {
fmt.Println("")
}
if len(res.HTTPS) > 0 {
fmt.Printf("HTTPS")
fmt.Println("HTTPS")
tbl := table.New("Name", "Status", "LocalAddr", "Plugin", "RemoteAddr", "Error")
for _, ps := range res.HTTPS {
tbl.AddRow(ps.Name, ps.Status, ps.LocalAddr, ps.Plugin, ps.RemoteAddr, ps.Err)
@@ -125,7 +125,7 @@ func status(clientCfg config.ClientCommonConf) error {
fmt.Println("")
}
if len(res.STCP) > 0 {
fmt.Printf("STCP")
fmt.Println("STCP")
tbl := table.New("Name", "Status", "LocalAddr", "Plugin", "RemoteAddr", "Error")
for _, ps := range res.STCP {
tbl.AddRow(ps.Name, ps.Status, ps.LocalAddr, ps.Plugin, ps.RemoteAddr, ps.Err)
@@ -134,7 +134,7 @@ func status(clientCfg config.ClientCommonConf) error {
fmt.Println("")
}
if len(res.XTCP) > 0 {
fmt.Printf("XTCP")
fmt.Println("XTCP")
tbl := table.New("Name", "Status", "LocalAddr", "Plugin", "RemoteAddr", "Error")
for _, ps := range res.XTCP {
tbl.AddRow(ps.Name, ps.Status, ps.LocalAddr, ps.Plugin, ps.RemoteAddr, ps.Err)