fixup of previous commit -- make json fields lowercase_underscored

This commit is contained in:
Eugene Bujak 2018-12-21 16:16:13 +03:00
parent 87b3c92f71
commit c073f9db7b
1 changed files with 4 additions and 4 deletions

View File

@ -47,10 +47,10 @@ func handleDHCPInterfaces(w http.ResponseWriter, r *http.Request) {
}
type responseInterface struct {
Name string
MTU int
HardwareAddr string
Addresses []string
Name string `json:"name"`
MTU int `json:"mtu"`
HardwareAddr string `json:"hardware_address"`
Addresses []string `json:"ip_addresses"`
}
for i := range ifaces {