Skip to content

Documentation(readme)#47

Open
nizigama wants to merge 1 commit into
pindoio:masterfrom
nizigama:master
Open

Documentation(readme)#47
nizigama wants to merge 1 commit into
pindoio:masterfrom
nizigama:master

Conversation

@nizigama

@nizigama nizigama commented Mar 2, 2022

Copy link
Copy Markdown

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
Comment thread README.md
bs, err := json.Marshal(smsData)

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

Copy link
Copy Markdown

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

@nizigama nizigama Sep 26, 2023

Copy link
Copy Markdown
Author

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