Fix source code format issues.

This commit is contained in:
Harshavardhana
2017-01-13 16:55:25 -08:00
parent 95033f3f76
commit 50228116e1
+6 -6
View File
@@ -284,7 +284,7 @@ func listHosts() {
maxAlias = len(k)
}
}
var hosts []hostMessage
for k, v := range conf.Hosts {
hosts = append(hosts, hostMessage{
@@ -296,13 +296,13 @@ func listHosts() {
API: v.API,
})
}
// Sort hosts by alias names lexically.
// Sort hosts by alias names lexically.
sort.Sort(byAlias(hosts))
// Display all the hosts.
// Display all the hosts.
for _, host := range hosts {
// Format properly for alignment based on alias length.
// Format properly for alignment based on alias length.
host.Alias = fmt.Sprintf("%-*.*s", maxAlias, maxAlias, host.Alias)
printMsg(host)
}