by muzzammildotxyz · 8y ago · 0 comments
1) How do I format the JSON for readability or should I ignore that?
2) Thanks for that. Didn't know about it. Any ideas on how I can fix that? Maybe I can check if it is a file and not a directory and ask for input again for y/n?
1) What do you mean exactly? The usual way would be to keep your data in a struct like:
type configuration struct {
Name string `json:"name"`
}
and then marshall it into a json string like: https://play.golang.org/p/uWvwBY4h03nIf you need more details feel free to contact me. Address is in my profile.
Also, great website! :D
https://github.com/muhammadmuzzammil1998/Log-mailer/commit/f...