Created
September 14, 2020 19:30
-
-
Save nleiva/980fe11fe71324bbd11e53fb846ac2b4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Response are the values returned from the module | |
type Response struct { | |
Msg string `json:"msg"` | |
Busy bool `json:"busy"` | |
Changed bool `json:"changed"` | |
Failed bool `json:"failed"` | |
} | |
func returnResponse(r Response) { | |
... | |
response, err = json.Marshal(r) | |
... | |
fmt.Println(string(response)) | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment