Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation(readme) #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Documentation(readme) #47

wants to merge 1 commit into from

Conversation

nizigama
Copy link

@nizigama nizigama commented Mar 2, 2022

Used the json package to generate a safe and optimised json string

…mentation using the json package to help prevent special characters from returning a malformed json
@nizigama nizigama changed the title Replaced the string representation of json with a json package implementation Documenation(readme) Mar 2, 2022
@nizigama nizigama changed the title Documenation(readme) Documentation(readme) Mar 2, 2022
bs, err := json.Marshal(smsData)

if err != nil {
// Handle the conversion error

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably log the error? @nizigama else I'd just go with _ if we are not expecting any errors

Copy link
Author

@nizigama nizigama Sep 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's always a good idea to log/handle errors even though in this case it's less likely to return any🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants