Learning Golang: Dependencies, Modules and How to manage Packages

Поделиться
HTML-код
  • Опубликовано: 11 дек 2024

Комментарии • 39

  • @rahulsriram6295
    @rahulsriram6295 2 года назад +1

    I found this gem of a channel today and I can't stop binging

    • @MarioCarrion
      @MarioCarrion  2 года назад +1

      Welcome to the team Rahul! Take care.

  • @SolelyMat
    @SolelyMat 3 месяца назад

    Grande Mario! Tuve que dejar el curso de Microsoft y venir a ver este video para entender muchas de las cosas que no estaban tan bien explicadas, saludos de Argentina.

  • @TheAlissonX1
    @TheAlissonX1 Год назад +3

    thanks for the video! Very good explanation

  • @MarcelloLins
    @MarcelloLins 3 года назад +2

    Incredibly useful video ! Thanks for helping demystify something that turned out to be quite simple

  • @josevitormorais4367
    @josevitormorais4367 3 года назад +1

    Olá Mario tudo bem? Espero que sim.. falo aqui do Brasil, queria agradecer pelo conteúdo que está disponibilizando no seu canal, sou novo no mundo GOLANG, e seus vídeos são excelentes, ensinando muita coisa que é realmente usado no mercado..atualmente trabalho com nodejs, e tudo q vc ensina aqui eu utilizo com node no dia a dia... parabéns pela didática, suas explicações são ótimas e concisas, espero que continue com o trabalho, sucesso e tudo de bom pra você..

    • @MarioCarrion
      @MarioCarrion  3 года назад

      Olá Jose. Obrigado pelo seu apoio, fico feliz que os vídeos sejam úteis. Espero que você esteja bem. Take care.

  • @ultiumlabs4899
    @ultiumlabs4899 3 года назад +1

    thanks, it clarifies something I don't understand before.

  • @phenvrc
    @phenvrc 2 года назад +1

    Thank you so much!!! Your videos are helping me a lot!!

    • @MarioCarrion
      @MarioCarrion  2 года назад

      Thanks for watching Pedro. Stay safe.

  • @dmitrydmitriev2554
    @dmitrydmitriev2554 7 месяцев назад

    Thank you. A lot of useful information and amazing way to explain things.

  • @MegaSovietRussian
    @MegaSovietRussian 3 года назад +1

    Excellent delivery! thank you so much for the tutorial:)

  • @jasonjiang1326
    @jasonjiang1326 2 года назад +1

    This is extremely useful! Thank you so much for the tutorial!

    • @MarioCarrion
      @MarioCarrion  2 года назад

      Thanks for watching Jason, take care.

  • @proudindian3697
    @proudindian3697 2 года назад +1

    Nice tutorial..!! Thanks

  • @thorfinnthegoatmc
    @thorfinnthegoatmc 2 года назад +1

    This is a very detailed explaination for go modules! thank you very much! although I have a question, If youre using branches as versions of the module how would you manage it if you are merging it with the main branch?

    • @MarioCarrion
      @MarioCarrion  2 года назад

      Thanks for watching! I think I need a bit more of details regarding your question because I'm not sure if you meant using Go modules (ie importing third party modules) or creating your own (ie versioning/branching/tagging)

    • @thorfinnthegoatmc
      @thorfinnthegoatmc 2 года назад

      @@MarioCarrion creating my own module i mean. Sorry for the vague question 😅

    • @MarioCarrion
      @MarioCarrion  2 года назад

      No worries! What you're asking is really interesting; assuming each branch is also tagged with their own respective version then you should be able to refer to those individually; however I think it will be a bit difficult to bring changes (as-is) back to main because the go.mod would be different (among other things); a real-life example of this approach that I know of is: github.com/olivere/elastic

  • @luq2337
    @luq2337 2 года назад

    awesome and excellent explanation!!!! THX!!!!!🥰🥰🥰🥰🥰🥰

    • @MarioCarrion
      @MarioCarrion  2 года назад

      Thanks! I'm glad you found it useful

  • @MarioCarrion
    @MarioCarrion  3 года назад

    *Blog* mariocarrion.com/
    *Learning Golang* ruclips.net/p/PL7yAAGMOat_F7bOImcjx4ZnCtfyNEqzCy
    *Building Microservices in Go* ruclips.net/p/PL7yAAGMOat_Fn8sAXIk0WyBfK_sT1pohu
    *Go Tools and Packages* ruclips.net/p/PL7yAAGMOat_HEEOvH99agDs_5g51A0Ls3
    *Testing in Go* ruclips.net/p/PL7yAAGMOat_HSeW4zF0uRL9EaHadE4ZZq
    *Keep it up!*

  • @abdulrafaykhan5996
    @abdulrafaykhan5996 2 года назад +1

    Excellent explanation Mario Carrion!! Can you tell what v0.0.0 means?

    • @MarioCarrion
      @MarioCarrion  2 года назад +2

      Thanks Abdul
      "v0.0.0" means: "Version 0 (Major), 0 (Minor), 0 (Patch)" which in practice means the module being used still has no tagged versions therefore it defaults to something like "v0.0.0-commit-hash".
      Best

    • @abdulrafaykhan5996
      @abdulrafaykhan5996 2 года назад

      @@MarioCarrion Great, thanks

  • @zikomo8913
    @zikomo8913 7 месяцев назад

    You're the boss!

  • @jimzhu7654
    @jimzhu7654 3 года назад +1

    very clear, thank you sir.

  • @liminal27
    @liminal27 3 года назад +1

    Excellent. Thank you.

  • @rsrini7
    @rsrini7 3 года назад

    Thanks for the explanation. What is vendor and go mod vendor and vendor folder.

    • @MarioCarrion
      @MarioCarrion  3 года назад +1

      Hello Srini
      The "vendor" folder is used to keep a local copy of the packages you use in your module (with their corresponding versions); it's a way to avoid downloading remote packages when using the go module, in that case the local copies relative to the module are used instead.

  • @jackedelic9188
    @jackedelic9188 3 года назад

    What if my dependencies are private repo? How can we configure go mod such that it knows our ssh private key in order to access the private repos?

    • @MarioCarrion
      @MarioCarrion  3 года назад +2

      Using private modules is a bit more complicated, the two ways I found working were either using Access Tokens or netrc credentials, I wrote a post about it mariocarrion.com/2020/09/19/configuring-gitlab-ci-and-private-go-modules.html it's for Gitlab but if you use a different VCS there's a similar way to do it.

    • @JoeKme
      @JoeKme 3 года назад +1

      @@MarioCarrion That is awesome Mario!

  • @JayMikB
    @JayMikB 3 года назад

    First 🚀🚀

  • @buacomgiadinh1
    @buacomgiadinh1 3 года назад

    thank you