Our great sponsors
-
Are you talking about the specification of fmt.Println? The docs are pretty vague about what kinds of situations can return an error. I suppose you could drill down into the Go source code, but you'll quickly find that you're dealing with code that makes syscalls to your OS (e.g. Windows), so you need to go read the documentation for your platform to understand under what circumstances it might produce an error. Perhaps we can check the tests for the code in this callstack. If we work our way up from that call to writeFile, the first function that does anything interesting with the errors is FD.Write. Sadly, test coverage of fd_windows.go appears to be pretty slim. Maybe there's a different file that contains the tests we're looking for, but I couldn't quickly find it.
-
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
Take this as the high-performing router (I used this in an early demo for the company I worked for when we considered Golang). https://github.com/julienschmidt/httprouter/blob/34250257ea144905c752bfaae80d6885f190daf6/tree.go
-
You should always use golangci-lint, which includes errcheck.
-
errcheck has a flag for that ;)
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.