Golang 1.20 Release - Everything you need to know!

Поділитися
Вставка
  • Опубліковано 10 жов 2024

КОМЕНТАРІ • 36

  • @GolangDojo
    @GolangDojo  Рік тому +2

    Get your *FREE Golang Cheat Sheet* -
    golangdojo.com/cheatsheet

    • @MrAkarika
      @MrAkarika Рік тому +2

      Don't work

    • @krisheyse8445
      @krisheyse8445 Рік тому

      @@MrAkarikaDoes not work for me either, but I'm sure we will get the SPAM

  • @ujjaldeb6286
    @ujjaldeb6286 Рік тому +15

    Respect man for these awesome videos . Love from India

  • @Handola
    @Handola Рік тому +29

    captions: "a new version of a girl just got released a couple days ago virgin at 1.020 "

    • @iatheman
      @iatheman Рік тому +1

      😂

    • @Reese_414
      @Reese_414 Рік тому

      I rewound the video like 15 times after seeing this comment! 🤣😂🤣

    • @nictibbetts
      @nictibbetts Рік тому +1

      Based and Gopherpilled

  • @FedericoPedemonte
    @FedericoPedemonte Рік тому +1

    one feature we always take for granted but which is one of Go's best features is the promise of backwards compatibility. It was worth being mentioned, I think

  • @chainsaws0friendship
    @chainsaws0friendship Рік тому +1

    Thanks! Already updating my projects!

  • @cookie_of_nine
    @cookie_of_nine Рік тому +4

    You are incorrect about the changes to comparable. It is not the case that "any" is interchangable with "comparable", the change is that generic code with a "comparable" type parameter now can now accept an interface type (such as "any") as type argument. This means that in a generic function, a type parameter that is restricted by "comparable" is still needed to use the "=="/"!=" operators (or to use the type as the key in a map), but when instantiating the generic code you can now pass an interface type, as an interface type is normally comparable (with runtime caveats).
    eg:
    func equal1[T any](x,y T) bool { return x == y } // INVALID (T is not a comparable type)
    func equal2[T comparable](x, y T) bool { return x == y } // VALID (and unchanged from 1.18)
    // The main difference is in what is allowed at instantiation
    var a,b any = 1,2
    var c,d any = []int{}, []int{}
    equal1(a,b) // Always an error (since equal1 can't be compiled)
    equal2(a,b) // Now OK in 1.20 (fails to compile in go

  • @esra_erimez
    @esra_erimez Рік тому +1

    I thoroughly enjoyed this splendid video

  • @mantrax314
    @mantrax314 Рік тому +1

    You're the best!

  • @rafabil1096
    @rafabil1096 Рік тому +1

    Great resume as always! A video about unsafe package would be highly appreciated. Also in 2:37 you talk about 3 new functions, but unsafe.SliceData is duplicated (was it meant to be StringData?)

  • @ivanjijon8647
    @ivanjijon8647 Рік тому

    Yes we want that video about unconventional unsafe package!

  • @mwnkt
    @mwnkt Рік тому +3

    please make a video about the unsafe package

  • @RichM1967
    @RichM1967 Рік тому +1

    I'd like to know more about unsafe!

  • @philipobiora6688
    @philipobiora6688 Рік тому +1

    nice video please make a video of package unsafe

  • @thecastiel69
    @thecastiel69 Рік тому +1

    I thought it's Fireship video

  • @PabloTriandafilide
    @PabloTriandafilide Рік тому

    Thanks!!

  • @emmanueljonathan6739
    @emmanueljonathan6739 Рік тому +2

    Awesome video.
    Please do an unsafe video

  • @doresearchstopwhining
    @doresearchstopwhining Рік тому

    Love these updates, but I feel motion sickness trying to read with that background moving around...

  • @buildfromzero
    @buildfromzero Рік тому

  • @miracleinnocent2649
    @miracleinnocent2649 Рік тому

    You’re forgetting arena tho it’s experimental you should do some videos about that to

  • @evil_b1t
    @evil_b1t Рік тому

    i use method for updating as in 0:10 but "go version" still showing 19.5.
    "go1.20 version == go version go1.20" but "go version == go version go1.19.5"

  • @Edvard-Aliev
    @Edvard-Aliev Рік тому +4

    First! Ёпта!

  • @firosiam7786
    @firosiam7786 Рік тому

    Can u restart the beginer go lang project playslist it has only one vedio in it

  • @gabrielmocan
    @gabrielmocan Рік тому

    Uh Oh you didn’t even touch on PGO? 😢

  • @ahmadakhbarf7118
    @ahmadakhbarf7118 Рік тому

    how many years did it take for golang version 2?

    • @igorthelight
      @igorthelight Рік тому

      2.0 would be incompatible with 1.X
      They would keep version 1.X as long as they could.

  • @ygjt76v0-----
    @ygjt76v0----- Рік тому

    Bro, why no yoooo again

  • @EzequielRegaldo
    @EzequielRegaldo Рік тому

    That's why i drop golang lol, NET 7 BABY

  • @mhcbon4606
    @mhcbon4606 Рік тому

    know this voice lol

  • @dr3w979
    @dr3w979 Рік тому +1

    second, lol