{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreidleniflzrflojlvfpxxahin3ftom4khulz6z5rw4laahnl43v4m4",
    "uri": "at://did:plc:jfwxfgx3olblmdv66ysmcfde/app.bsky.feed.post/3mgfvhyxemq52"
  },
  "path": "/Coding/2026/03/06/Go-the-right-way-the-Zen-of-Go-coding.html",
  "publishedAt": "2026-03-06T12:38:25.000Z",
  "site": "https://blog.x-way.org",
  "tags": [
    "Coding",
    "Go the right way: the Zen of Go coding",
    "os.Root API to avoid path traversal attacks"
  ],
  "textContent": "Go the right way: the Zen of Go coding\n\n>   1. Write packages, not programs\n>   2. Test everything\n>   3. Write code for reading\n>   4. Be safe by default\n>   5. Wrap errors, don’t flatten\n>   6. Avoid mutable global state\n>   7. Use (structured) concurrency sparingly\n>   8. Decouple code from environment\n>   9. Design for errors\n>   10. Log only actionable information\n>\n\n\nThe security engineer in me especially likes the pointer to the os.Root API to avoid path traversal attacks 🔐\n\n* * *\n\nThanks for reading this post via RSS. You're awesome ♥️",
  "title": "Go the right way: the Zen of Go coding"
}