Demistifying GOPATH. Basic Go commands (Go Basics #1)

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 พ.ย. 2024

ความคิดเห็น • 50

  • @codelinx
    @codelinx ปีที่แล้ว

    This topic is always so useful. Just subscribed ....

  • @jasonshi6916
    @jasonshi6916 ปีที่แล้ว

    I am new to Go and I enjoyed learning from you. thanks!

    • @SteveHook
      @SteveHook  ปีที่แล้ว

      You’re welcome mate 🤗

  • @viraj4551
    @viraj4551 3 หลายเดือนก่อน

    This is just Awesome!

  • @barnabynorman157
    @barnabynorman157 3 ปีที่แล้ว +1

    That was great - some things that I never would have thought of looking at. Thank you!

    • @SteveHook
      @SteveHook  3 ปีที่แล้ว

      Thanks mate, appreciate it 😊

  • @cramhead
    @cramhead 3 ปีที่แล้ว +2

    Thanks for making this video. It was super helpful, as I'm totally new to go.

    • @SteveHook
      @SteveHook  3 ปีที่แล้ว

      Thx, glad you enjoyed it 😊

  • @CaioCSG1
    @CaioCSG1 3 ปีที่แล้ว +1

    please continue doing go videos, you videos are amazing and helpful

    • @SteveHook
      @SteveHook  3 ปีที่แล้ว

      Thanks buddy, will definitely DO 😉😉😎

  • @runnerelectrode
    @runnerelectrode 4 ปีที่แล้ว +3

    without further ado, jump to 4:10

    • @SteveHook
      @SteveHook  4 ปีที่แล้ว

      Gaurav Shukla 😅

  • @daymaker_trading
    @daymaker_trading 2 ปีที่แล้ว

    Thank you!

  • @G-3-A-R-Z
    @G-3-A-R-Z ปีที่แล้ว

    On Linux, Arch to be specific. If you use the AUR to install golang it may go just fine the first time. Once you upgrade once, you often have broken packages. The reason that I have found is that the binary gets installed on top of the existing one. That breaks it. This is stated in the go docs. This is why doing the manual installation is actually better, at least for me. So I go to the go docs and install it with their scripts that actually remove the old copy of the go binary. Once you do the installation, you will notice a go file in your home directory. This is not typical. You can move this anywhere. Once you move it, you need to define where it is in your bashrc or zshrc. Giving the path location and the root, then you can actually run it anywhere and not run it in the go file you moved. This could be a video. lol I just don't like making them. I write blog instead. lol

  • @yuvrajagarkar8764
    @yuvrajagarkar8764 ปีที่แล้ว

    Loved it

    • @SteveHook
      @SteveHook  ปีที่แล้ว

      Appreciate it mate 🥰🥰

  • @hosthinnenberger6683
    @hosthinnenberger6683 2 ปีที่แล้ว

    love it

  • @apidas
    @apidas 3 ปีที่แล้ว

    thank you

  • @yuvrajagarkar8764
    @yuvrajagarkar8764 ปีที่แล้ว

    Please makes some videos on big projects g0

  • @aleksandrkravtsov8727
    @aleksandrkravtsov8727 2 ปีที่แล้ว

    privet stepan kriyk 👋

    • @SteveHook
      @SteveHook  2 ปีที่แล้ว

      Nailed it 😅

  • @mastershake5817
    @mastershake5817 4 ปีที่แล้ว

    Nice video man. Thanks

  • @mystifyingdude
    @mystifyingdude 2 ปีที่แล้ว

    How does the role of gopath changes with go mod

  • @ahmedwafik4784
    @ahmedwafik4784 4 ปีที่แล้ว +1

    very god video as usual but I have a Q
    if I'm creating a new project using GO mod should I place it in the $GOPATH SRC/?

    • @SteveHook
      @SteveHook  4 ปีที่แล้ว

      Thx, no you should not. That’s the beauty of them. In fact I did show that in my example

  • @mrunfunny
    @mrunfunny 3 ปีที่แล้ว

    The output was "Hellow world!" at 10:10 but everywhere else it was "Hello world!".

  • @martijndebeuf82
    @martijndebeuf82 3 ปีที่แล้ว +2

    Hi! when I install a package with "go get" from github for example, the code is placed into the pkg/mod directory instead of the src directory. How can I prevent this?

    • @SteveHook
      @SteveHook  3 ปีที่แล้ว

      That’s normal behavior, I don’t see why you would want to prevent that. Because you are using a version of Go which defaults to supporting Go modules it automatically adds modules to your go.mod file and stores them inside the mod directory. Setting the GOMODULE111 variable to off may disable that behavior

    • @rahulberry4806
      @rahulberry4806 3 ปีที่แล้ว

      I don't have src folder

    • @mustafakaracabey1433
      @mustafakaracabey1433 3 ปีที่แล้ว

      @@rahulberry4806 and also ı dont have src folder what did you do ?

    • @SteveHook
      @SteveHook  3 ปีที่แล้ว

      You could manually create it, but the src directory at the time is obsolete 🙂

  • @fkz4239
    @fkz4239 4 ปีที่แล้ว

    nice

  • @debanjanbarman7212
    @debanjanbarman7212 4 ปีที่แล้ว +1

    for debian based Linux distro
    $ sudo apt-get install golang

  • @smartlife2239
    @smartlife2239 3 ปีที่แล้ว

    does these commands also work on windows.
    And did you save the main.go directly under desktop

    • @SteveHook
      @SteveHook  3 ปีที่แล้ว

      Most commands should work on all systems. Unless it’s a linux/unix specific command, which can be replicated with something like git bash

  • @axelbest
    @axelbest 5 ปีที่แล้ว

    Not bad at all!

  • @sanjogchaulagain5788
    @sanjogchaulagain5788 3 ปีที่แล้ว

    u created steevehook inside of github.com folder , then howcome u accese it via src/steevehook directly

    • @SteveHook
      @SteveHook  3 ปีที่แล้ว

      I’m sorry, could you point me to the timestamp in the video so I can answer your question 😉

  • @ahmedwafik4784
    @ahmedwafik4784 4 ปีที่แล้ว

    one Q Steve what is the theme and plugins for your terminal man I love it

    • @SteveHook
      @SteveHook  4 ปีที่แล้ว +1

      Hey man. Solarized Dark with OhMyZSH Agnoster

  • @0cool966
    @0cool966 2 ปีที่แล้ว

    Please remote the music. Otherwise good.

  • @rahulberry4806
    @rahulberry4806 3 ปีที่แล้ว

    hi Steve, I don't have src folder , is that okay ?

    • @SteveHook
      @SteveHook  3 ปีที่แล้ว

      Sometimes you need to create them yourself depending on what kind of installation you went with, since all those locations can be changed.

  • @TheUndulyNoted
    @TheUndulyNoted 2 ปีที่แล้ว

    I think this is a great music but I found the music unnecessary and distracting.

  • @rockwithyou2006
    @rockwithyou2006 ปีที่แล้ว

    nice video but the bg music is not needed

  • @rakra4551
    @rakra4551 2 ปีที่แล้ว

    Good video but very annoying and distracting background music.

  •  5 ปีที่แล้ว +2

    Quick tip: if you say let's go do X .... Then pls, for the love of God... Just do it.
    7:47 you said "... Let's [go]..." 5 times before you actually did anything. 20 seconds of boilerplate, arm swinging and pointing at things

    •  5 ปีที่แล้ว

      @@SteveHook you are right, yesterday I watched the anatomy video of yours and I enjoyed it quit a bit. Informative and more to the point.
      Thanks for taking my comment as a critique even though my temper was uncalled for.
      In general the trend on TH-cam seems to be, beeing overly dramatic and having gestures and what not for every little thing there is. I must say that I am not the biggest fan of that. But as long as it is moderately used, I too can enjoy it.
      One point I noticed is that sometimes when you cut things together, the ending of one clip is quite similar to the beginning of the next. In my opinion avoiding this makes for a better flow in the video. Having the cuts then helps you sperate one sentence/concept/etc. from the next. This way cuts get a stylistic meaning and help people to understand. (Also keeps one from ranting on and on, personal experience 😁)

  • @neilclay5835
    @neilclay5835 3 ปีที่แล้ว +2

    Please lose the music. Otherwise, thanks for the video.