chore: update Go, and linter

This commit is contained in:
Fernandez Ludovic
2023-07-08 15:47:33 +02:00
parent 09b74d7912
commit eeea0e75c9
6 changed files with 29 additions and 52 deletions

1
app.go
View File

@ -54,6 +54,7 @@ func init() {
flag.StringVar(&name, "name", os.Getenv("WHOAMI_NAME"), "give me a name")
}
// Data whoami information.
type Data struct {
Hostname string `json:"hostname,omitempty"`
IP []string `json:"ip,omitempty"`