TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Practical Persistence in Go: SQL Databases

41 pointsby mapleoinalmost 10 years ago

2 comments

rakooalmost 10 years ago
&gt; http.Error(w, err.Error(), 500)<p>This will send the sql error directly to the client. I don&#x27;t think it&#x27;s a good idea because it can leak important information to it; it&#x27;s better to log this error on the server and send back a generic failure message to the client.
评论 #9767092 未加载
tomcamalmost 10 years ago
As a guy who learns from examples, I find this to be just the kind of tutorial I&#x27;ve been looking for.