Send key strokes to another pane from the one you are in. Useful when you want to code command functions that run different programs on other panes (like turning on the fish while also printing "be back soon" and setting the current status). -- Watch live at https://www.twitch.tv/rwxrob ... https://www.youtube.com/watch?v=21zn34w9TZA
How do you do, fellow kids. So yeah, I underestimated the grade, and turfed it, literally. SK8 or die! -- Watch live at https://www.twitch.tv/rwxrob
...
https://www.youtube.com/watch?v=eKo9yjxlWC0
The replace keyword in go.mod allows you to work on several packages, with different repos, at the same time, or, to test changes locally before pushing them.
Unfortunately, it is rather easy to leave the replace in your go.mod file and forget and commit it. Until rather recently, that meant other projects depending on your module would fail to compile trying to locate your local path on their build machines. These days go won't even compile or install the module if there is a replace in the go.mod file.
Even so, committing to a production repo with replace could be embarrassing so might want to add the following .git/hooks/pre-commit hook (don't forget to chmod +x) to prevent any commit of go.mod that has the word replace in it, which you could easily modify to check that it isn't commented out (// replace should be allowed). This script checks for jq and if not found uses grep instead:
[code snipped]
Tags:
#golang #tips #replace
Thanks sponsors, subs, and followers:
- GitHub: https://github.com/sponsors/rwxrob
- Twitch: https://www.twitch.tv/subs/rwxrob
- Twitter: https://twitter.com/rwxrob
- Discord: https://discord.com/invite/9wydZXY
See http://rwxrob.tv/schedule for scheduled streams.
[ZETID:20211002150304]
https://github.com/rwxrob/zet/tree/main/20211002150304
...
https://www.youtube.com/watch?v=k_nx_zPf84A
Who needs Arch or a "build" distro when Conan the Container is here!. Here's how to build a borderless version of TMUX (like the one I use in all my streams) with nothing but Docker and a shell script.
...
https://www.youtube.com/watch?v=nDmf1Q10Hmg