Hello there π
In this brief article I will explain how I write a REST API using Golang trying to follow some best practices.
The source code to ...
Some comments have been hidden by the post's author - find out more
For further actions, you may consider blocking this person and/or reporting abuse
Nice thorough guide, but it might be worth mentioning that the recommended practice is to use a custom
http.Server
with timeouts and such, as described here.Another useful thing to perhaps mention is using the request context when running DB queries in order to handling timing them out and cancelling them. Contexts are also useful to pass context from middleware to handlers too :)
Thanks, I appreciate your feedback :)
Author's response about this situation:
"Hello there :) I actually delete it because some of the concepts were inspired by other content creators and didn't wanted to disrespect their work. Therefore, I decided to delete that article and rewrite it better."
We'll be wait ^_^
Nice article!
I appreciate it :)
Hi,
You are missing a privacy section.
Privacy by design compliance
Privacy by design compliance is a challenging task for most startups. It is better to build it from the first steps of the product. Otherwise, you will have to add privacy to an already developed product. It is much more complicated and much more expensive.
You can build privacy by design on your own, or go with the open-source tools, for example with the Databunker project (databunker.org/). Databunker is a network-based, self-hosted, GDPR compliant, secure storage for personal data.
Self-promotion
I am an open-source security developer. I build and maintain the Databunker project.
Databunker will make your company or service privacy by design compliant and it is absolutely for free.
BR, Yuli
Hello I appreciate the feedback! I will try to implement it ππ» Iβll be updating this post with what I learn :)
Hi Lucas, FYI we've added your blog post on a GitHub project gathering content about best coding practices :)
github.com/promyze/best-coding-pra...
Awesome, thanks for sharing =)
You're Welcome :)
Maaaaaaaaaaaaaan! Why do you delete this amazing article??(((
Agreed--I came here from a link in an email, and I'm disappointed to see that the entire post was removed.
I think it would have been more appropriate to mark whatever parts of the post may have been in error with a note saying something to the effect, "It has been brought to my attention that this section may not be 100% accurate, and an update is pending"
Thanks for the article. There needs be more go lang articles in this site.
showing 404 :/
The same is true for me. I started reading it and wanted to continue after some time. Now itβs gone.