go.dev

sirico, to golang in Evolving the Go Standard Library with math/rand/v2
@sirico@feddit.uk avatar

1.20+ has just been straight fire, I’ve just started in GO, When I began my learning I though needing JavaScript was a necessity now it’s getting more and more to the point I can deliver in just GO

foobaz, to golang in Go 1.22.2 released
austin, to golang in Fixing For Loops in Go 1.22 - The Go Programming Language

Much needed change, I wish they made it apply for all go versions though

mrkite, to golang in Fixing For Loops in Go 1.22 - The Go Programming Language
@mrkite@programming.dev avatar

So it’s not really a problem with for loops, it’s a problem with closures inside for loops.

lightsecond, to golang in Fixing For Loops in Go 1.22 - The Go Programming Language

As someone just learning Go, the current behaviour is really unexpected. I’m happy that they are changing it.

bmarinov,

As someone with years of Go experience, this thing bites me or my team in the ass at least once every six months. Sometimes tests catch it, other times the tests get written after the fact and made to fit the implementation. Hilarious bug hunts ensue. I’m happy for this proposal moving forward.

sjpwarren, to golang in Backward Compatibility, Go 1.21, and Go 2

Never is a very long time. I Hope they can maintain that promise because having to write lots of code everytime there is a major upgrade is so costly. I agree with @mrkite, I wish Angular had the same idea and even Vue.

mrkite, to golang in Backward Compatibility, Go 1.21, and Go 2
@mrkite@programming.dev avatar

Now if only the people behind Angular held the same belief.

austin, to golang in Backward Compatibility, Go 1.21, and Go 2

The backwards compatibility promises of Go definitely makes upgrading a breeze. Java is pretty much in the same boat (except it maintains bytecode compatibility instead of source). When working with languages that don’t offer these promises it’s always a nightmare to upgrade to newer versions.

nebiros, to golang in Backward Compatibility, Go 1.21, and Go 2
koalalorenzo,

Would you consider Go as boring technology? 🤔 sometimes I feel that its simplicity gives less unknown unknowns, and more “boring”.

nebiros,

well, boring tech link is about battle tested tech, not about hype, so, in that sense, yeah, seems “boring” to me, but I love it, :)

spacedogroy, to golang in Experimenting with project templates

I must be grumpy because when I saw the blog post I thought it was kind of dumb when git clone gives you all you need and is universal. It felt a bit like a needless solution.

That being said, integration into gopls and IDE: yes please and thank you. 👍

BravoVictor, to golang in Experimenting with project templates
@BravoVictor@programming.dev avatar

Interesting. I’ve never personally had too many issues with startup. I actually thought Golang already had something like this built-in with ‘go mod init’. Looks like i was wrong…

Having boilerplate does help.

Cobra CLI is pretty great if you will only be using your binary on the cli.

mrh, (edited ) to golang in Go 1.21 RC
@mrh@mander.xyz avatar

Wow super excited about slices package! Very nice quality of life addition.

beregoth, to golang in Go 1.20.6 released!

go1.20.6 (released 2023-07-11) includes a security fix to the net/http package, as well as bug fixes to the compiler, cgo, the cover tool, the go command, the runtime, and the crypto/ecdsa, go/build, go/printer, net/mail, and text/template packages. See the Go 1.20.6 milestone on our issue tracker for details.

jnj, to golang in Is Golang the name we want to use for the official Go community here?

I agree with you. Golang is a useful symbol for things like a community ID, but the human readable name is “Go Programming Language”.

EhForumUser, (edited ) to golang in Go 1.21 RC

could have easily been in math package

Not easily while avoiding the allocation hit of variadic arguments. But funny that, after all these years waiting on parametric polymorphism to be able to add a generalized min/max, it ends up as a built-in anyway.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines