Go Lang Developers
266 subscribers
8 photos
4 files
41 links
The Future of Block Chain
Download Telegram
Backward compatibility in Go: discussion

>>>
We now have about ten years of experience with Go 1 compatibility.

In general it works very well for the Go team and for users. However, there are also practices we've developed since then that it doesn't capture (specifically GODEBUG settings), and there are still times when users’ programs break.

I think it is worth extending our approach to try to break programs even less often, as well as to explicitly codify GODEBUG settings and clarify when they are and are not appropriate.
>>>

by Russ Cox

Join the discussion if you wish https://github.com/golang/go/discussions/55090Backward compatibility in Go: discussion

>>>
We now have about ten years of experience with Go 1 compatibility.

In general it works very well for the Go team and for users. However, there are also practices we've developed since then that it doesn't capture (specifically GODEBUG settings), and there are still times when users’ programs break.

I think it is worth extending our approach to try to break programs even less often, as well as to explicitly codify GODEBUG settings and clarify when they are and are not appropriate.
>>>

by Russ Cox

Join the discussion if you wish https://github.com/golang/go/discussions/55090
October 14, 2022
Error handling in Go is a little different than other mainstream programming languages like Java, JavaScript, or Python. Go’s built-in errors don’t contain stack traces, nor do they support conventional try/catch methods to handle them. Instead, errors in Go are just values returned by functions, and they can be treated in much the same way as any other datatype - leading to a surprisingly lightweight and simple design.

In this article, Brandon Schurman demonstrates the basics of handling errors in Go, as well as some simple strategies you can follow in your code to ensure your program is robust and easy to debug.

https://earthly.dev/blog/golang-errors/
December 22, 2022
March 26, 2023
March 26, 2023
March 26, 2023
March 26, 2023
March 26, 2023
User or *User - Do We Need Struct Pointers Everywhere?

The answer, as you might’ve guessed, is “no.” But, it’s also more nuanced due to the lifetime of a struct, its usage, and other aspects that boil this down to general guidelines and case-by-case analysis.

https://preslav.me/2023/02/06/golang-do-we-need-struct-pointers-everywhere/
March 26, 2023
November 12, 2023
November 12, 2023
December 23, 2023