json tag is malformed.

pull/4/head
Shirou WAKAYAMA 11 years ago
parent 03aac12ac8
commit 4fd58425aa

@ -1,8 +1,8 @@
package gopsutil
type NetIOCountersStat struct {
Name string `json:"name""` // interface name
BytesSent uint64 `json:"bytes_sent""` // number of bytes sent
Name string `json:"name"` // interface name
BytesSent uint64 `json:"bytes_sent"` // number of bytes sent
BytesRecv uint64 `json:"bytes_recv"` // number of bytes received
PacketsSent uint64 `json:"packets_sent"` // number of packets sent
PacketsRecv uint64 `json:"packets_recv"` // number of packets received
@ -13,16 +13,16 @@ type NetIOCountersStat struct {
}
type Addr struct {
IP string `json:"ip""`
Port uint32 `json:"port""`
IP string `json:"ip"`
Port uint32 `json:"port"`
}
type NetConnectionStat struct {
Fd uint32 `json:"fd""`
Family uint32 `json:"family""`
Type uint32 `json:"type""`
Laddr Addr `json:"laddr""`
Raddr Addr `json:"raddr""`
Status string `json:"status""`
Pid int32 `json:"pid""`
Fd uint32 `json:"fd"`
Family uint32 `json:"family"`
Type uint32 `json:"type"`
Laddr Addr `json:"laddr"`
Raddr Addr `json:"raddr"`
Status string `json:"status"`
Pid int32 `json:"pid"`
}

Loading…
Cancel
Save