// postToJSON converts a post struct into a JSON object in order to send to
// the API's endpoint.
postToJSON converts a post struct into a JSON object in order to send to
the API's endpoint.
// postToJSON converts a post struct into a JSON object in order to send to // the API ' s endpoint .
func postToJSON(post *Post) []byte {
	data, err := json.Marshal(post)
	if err != nil {
		return nil
	}
	return data
}
func postToJSON ( post * Post ) [ ] byte { data , err := json . Marshal ( post ) if err != nil { return nil } return data }
postToJSON converts a post struct into a JSON object in order to send to
the API's endpoint.
postToJSON converts a post struct into a JSON object in order to send to the API ' s endpoint .