gofmt the go

This commit is contained in:
Simon Howe
2016-09-22 16:05:37 +02:00
parent fe1ba9cc4d
commit 685a895dd5
2 changed files with 26 additions and 26 deletions

View File

@@ -142,18 +142,18 @@ func (c *connectionCounters) rows(r report.Report, ns report.Nodes, includeLocal
if includeLocal {
connection.Metadata = append(connection.Metadata,
report.MetadataRow{
ID: remoteKey,
Value: row.localAddr,
ID: remoteKey,
Value: row.localAddr,
})
}
connection.Metadata = append(connection.Metadata,
report.MetadataRow{
ID: portKey,
Value: row.port,
ID: portKey,
Value: row.port,
},
report.MetadataRow{
ID: countKey,
Value: strconv.Itoa(count),
ID: countKey,
Value: strconv.Itoa(count),
},
)
output = append(output, connection)

View File

@@ -159,12 +159,12 @@ func TestMakeDetailedHostNode(t *testing.T) {
Linkable: true,
Metadata: []report.MetadataRow{
{
ID: "port",
Value: "80",
ID: "port",
Value: "80",
},
{
ID: "count",
Value: "2",
ID: "count",
Value: "2",
},
},
},
@@ -265,12 +265,12 @@ func TestMakeDetailedContainerNode(t *testing.T) {
Linkable: true,
Metadata: []report.MetadataRow{
{
ID: "port",
Value: "80",
ID: "port",
Value: "80",
},
{
ID: "count",
Value: "2",
ID: "count",
Value: "2",
},
},
},
@@ -281,12 +281,12 @@ func TestMakeDetailedContainerNode(t *testing.T) {
Linkable: true,
Metadata: []report.MetadataRow{
{
ID: "port",
Value: "80",
ID: "port",
Value: "80",
},
{
ID: "count",
Value: "1",
ID: "count",
Value: "1",
},
},
},
@@ -381,12 +381,12 @@ func TestMakeDetailedPodNode(t *testing.T) {
Linkable: true,
Metadata: []report.MetadataRow{
{
ID: "port",
Value: "80",
ID: "port",
Value: "80",
},
{
ID: "count",
Value: "2",
ID: "count",
Value: "2",
},
},
},
@@ -397,12 +397,12 @@ func TestMakeDetailedPodNode(t *testing.T) {
Linkable: true,
Metadata: []report.MetadataRow{
{
ID: "port",
Value: "80",
ID: "port",
Value: "80",
},
{
ID: "count",
Value: "1",
ID: "count",
Value: "1",
},
},
},