Hide transitive fields from API responses in Website and Device structs
This commit is contained in:
@@ -16,7 +16,7 @@ const websitesFile = "websites.json"
|
||||
type Website struct {
|
||||
URL string `json:"url"`
|
||||
Icon string `json:"icon"`
|
||||
Status int `json:"status"`
|
||||
Status int `json:"-"`
|
||||
}
|
||||
|
||||
func RunProbe() []Website {
|
||||
|
||||
Reference in New Issue
Block a user