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.
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ê..
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?
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)
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
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
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.
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.
I found this gem of a channel today and I can't stop binging
Welcome to the team Rahul! Take care.
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.
thanks for the video! Very good explanation
Incredibly useful video ! Thanks for helping demystify something that turned out to be quite simple
Thanks Marcello. Take care!
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ê..
Olá Jose. Obrigado pelo seu apoio, fico feliz que os vídeos sejam úteis. Espero que você esteja bem. Take care.
thanks, it clarifies something I don't understand before.
Thank you so much!!! Your videos are helping me a lot!!
Thanks for watching Pedro. Stay safe.
Thank you. A lot of useful information and amazing way to explain things.
Thanks Dmitry. Take care.
Excellent delivery! thank you so much for the tutorial:)
Thanks for watching! Take care
This is extremely useful! Thank you so much for the tutorial!
Thanks for watching Jason, take care.
Nice tutorial..!! Thanks
Thanks! I'm glad you liked it
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?
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)
@@MarioCarrion creating my own module i mean. Sorry for the vague question 😅
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
awesome and excellent explanation!!!! THX!!!!!🥰🥰🥰🥰🥰🥰
Thanks! I'm glad you found it useful
*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!*
Excellent explanation Mario Carrion!! Can you tell what v0.0.0 means?
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
@@MarioCarrion Great, thanks
You're the boss!
very clear, thank you sir.
Excellent. Thank you.
Thanks for the explanation. What is vendor and go mod vendor and vendor folder.
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.
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?
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.
@@MarioCarrion That is awesome Mario!
First 🚀🚀
thank you