@@ -30,7 +30,7 @@ func Test_newNetUDP(t *testing.T) {
3030 name : "udp file found, no error should come up" ,
3131 file : "testdata/fixtures/proc/net/udp" ,
3232 want : []* netIPSocketLine {
33- & netIPSocketLine {
33+ {
3434 Sl : 0 ,
3535 LocalAddr : net.IP {10 , 0 , 0 , 5 },
3636 LocalPort : 22 ,
@@ -43,7 +43,7 @@ func Test_newNetUDP(t *testing.T) {
4343 Inode : 2740 ,
4444 Drops : intToU64 (100 ),
4545 },
46- & netIPSocketLine {
46+ {
4747 Sl : 1 ,
4848 LocalAddr : net.IP {0 , 0 , 0 , 0 },
4949 LocalPort : 22 ,
@@ -56,7 +56,7 @@ func Test_newNetUDP(t *testing.T) {
5656 Inode : 2740 ,
5757 Drops : intToU64 (100 ),
5858 },
59- & netIPSocketLine {
59+ {
6060 Sl : 2 ,
6161 LocalAddr : net.IP {0 , 0 , 0 , 0 },
6262 LocalPort : 22 ,
@@ -76,7 +76,7 @@ func Test_newNetUDP(t *testing.T) {
7676 name : "udp6 file found, no error should come up" ,
7777 file : "testdata/fixtures/proc/net/udp6" ,
7878 want : []* netIPSocketLine {
79- & netIPSocketLine {
79+ {
8080 Sl : 1315 ,
8181 LocalAddr : net.IP {0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 },
8282 LocalPort : 5355 ,
@@ -89,7 +89,7 @@ func Test_newNetUDP(t *testing.T) {
8989 Inode : 21040 ,
9090 Drops : intToU64 (0 ),
9191 },
92- & netIPSocketLine {
92+ {
9393 Sl : 6073 ,
9494 LocalAddr : net.IP {254 , 128 , 0 , 0 , 0 , 0 , 0 , 0 , 86 , 225 , 173 , 255 , 254 , 124 , 102 , 9 },
9595 LocalPort : 51073 ,
0 commit comments