From c073f9db7b5bdb2c5fa75a70c1c034d2f4cfa3fe Mon Sep 17 00:00:00 2001 From: Eugene Bujak Date: Fri, 21 Dec 2018 16:16:13 +0300 Subject: [PATCH] fixup of previous commit -- make json fields lowercase_underscored --- dhcp.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dhcp.go b/dhcp.go index 3c0c5b31..38284606 100644 --- a/dhcp.go +++ b/dhcp.go @@ -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 {