Makefiles For Golang Projects - Save Time And Build Faster!

  Рет қаралды 18,279

Earthly

Earthly

Күн бұрын

Earthly ➤ earthly.dev/youtube
In this tutorial, we delve into the powerful world of build automation with Makefiles in Go (Golang) programming. Discover the essentials of using task runners for efficient software development, including how to streamline the process of compiling, running, testing, and cleaning up your code. Learn the best practices for development workflows and gain insight into how Makefiles can serve as an invaluable tool for automating the myriad of tasks developers encounter daily. By the conclusion of this video, you'll understand the enduring value of Makefiles in a modern development environment and how they contribute to coding best practices. Don't miss the chance to see why Makefiles, combined with Golang's cross-compilation capabilities, are a robust solution for developers looking to optimize their build processes and why they're widely embraced within the Go community.

Пікірлер: 31
@boot-strapper
@boot-strapper 9 ай бұрын
I love make. It's pre installed on most unix-like OSs and its a nice consistent way to orchestrate stuff across languages/technologies.
@EarthlyTech
@EarthlyTech 8 ай бұрын
Isn't it great!
@sudo_garrett
@sudo_garrett Ай бұрын
fantastic video! I didn't know Go had a native make capability, the syntax is simple as always :)
@armanmirk
@armanmirk Жыл бұрын
Thanks for sharing. I agree Makefile is very useful and recently I came across the `just` command which is a Makefile compatible alternative with a bunch more options (task docs, real default task definition, etc) which makes this workflow even better.
@EarthlyTech
@EarthlyTech 8 ай бұрын
just is quite nice as well. Works well as a task runner.
@nodidog
@nodidog Жыл бұрын
Thanks for the video. I use Makefiles with cespare/reflex for hot reloading the server every time I save changes. It's very easy to do, and makes life easier
@EarthlyTech
@EarthlyTech Жыл бұрын
Thanks for watching and for the reflex idea!
@flevin58
@flevin58 Жыл бұрын
Thks for the video, great tip. I put you a 👍. I did a minor change to your Makefile: BINARY_NAME=$(notdir $(shell pwd)) so that the binary takes the name of the folder where the Makefile is located and so I can reuse it without changes.
@EarthlyTech
@EarthlyTech Жыл бұрын
Nice work!
@jirapatmalai6138
@jirapatmalai6138 Жыл бұрын
Wow, Nicely done video! Thank you.
@EarthlyTech
@EarthlyTech Жыл бұрын
Glad you liked it!
@matthiaslangbart9841
@matthiaslangbart9841 9 ай бұрын
Make is a lifesaver for me when I do more involved backend projects in Go. A simple '$ make' bundles and minifies TailwindCSS, bundles and minifies Javascript for HTMX, AlpineJS and some special ‘homegrown’ Javascript elements, compiles one binary version for local testing and one for the use in Docker and builds a Docker container for cloud deployment -- all with one simple CLI command and a number of well-structured dependencies. Good luck trying all this without a well-written Makefile!
@EarthlyTech
@EarthlyTech 8 ай бұрын
Sounds like a great use of a Makefile!
@YounisLY
@YounisLY Жыл бұрын
God bless the algorithm
@cooljoe5305
@cooljoe5305 4 ай бұрын
Again God bless the algorithm
@YounisLY
@YounisLY 4 ай бұрын
​@@cooljoe5305hallelujah
@yates_
@yates_ Жыл бұрын
There are some really interesting-looking features you have at the bottom of your VS Code instance, like the time spent coding and building. Would you be willing to share a list of those?
@EarthlyTech
@EarthlyTech Жыл бұрын
Hey, thanks for watching. That is WakaTime, but yes, it could be a good video idea. Thanks for suggesting it.
@abdu5822
@abdu5822 Жыл бұрын
please more go content
@SuperMANTHER
@SuperMANTHER 6 ай бұрын
I've seen .PHONY section added to a golang makefile. Do you know the purpose for it in golang?
@wisdomelue
@wisdomelue 7 ай бұрын
good work
@EarthlyTech
@EarthlyTech 7 ай бұрын
Thank you! Cheers!
@dori8118
@dori8118 9 ай бұрын
Thanks, we need tutorials on how to create real projects (not just how to make a specific app and leave it on my machine).
@EarthlyTech
@EarthlyTech 9 ай бұрын
Noted
@justin8mux
@justin8mux 9 ай бұрын
subscribed :)
@EarthlyTech
@EarthlyTech 9 ай бұрын
Thanks!
@whyredvince
@whyredvince 7 ай бұрын
Oh my god! You have a youtube channel? I started the video and that very instant I knew I've heard you somewhere 😂
@EarthlyTech
@EarthlyTech 7 ай бұрын
Yes I do! It's pretty new though, I'm just figuring things out.
@whyredvince
@whyredvince 7 ай бұрын
@@EarthlyTech Great! Love your podcast!
@ardawanx
@ardawanx Жыл бұрын
Have you tried using Bash/shell script instead of makefile?
@EarthlyTech
@EarthlyTech Жыл бұрын
For sure. Bash is certainly useful as well.
The secret to making Golang error handling a breeze
13:46
Earthly
Рет қаралды 9 М.
Children deceived dad #comedy
00:19
yuzvikii_family
Рет қаралды 8 МЛН
Increíble final 😱
00:37
Juan De Dios Pantoja 2
Рет қаралды 113 МЛН
3M❤️ #thankyou #shorts
00:16
ウエスP -Mr Uekusa- Wes-P
Рет қаралды 10 МЛН
Was ist im Eis versteckt? 🧊 Coole Winter-Gadgets von Amazon
00:37
SMOL German
Рет қаралды 29 МЛН
CMake vs Make - A developer's perspective
8:16
Kea Sigma Delta
Рет қаралды 4 М.
This Is The BEST Way To Structure Your GO Projects
11:08
Melkey
Рет қаралды 64 М.
5 Amazing Ways to Automate Your Life using Python
18:40
Internet Made Coder
Рет қаралды 217 М.
Build your own Container Runtime
37:37
Earthly
Рет қаралды 6 М.
The standard library now has all you need for advanced routing in Go.
13:52
David Crawshaw   SQLite and Go
32:03
Go Northwest
Рет қаралды 35 М.
Beginners Should Think Differently When Writing Golang
11:35
Anthony GG
Рет қаралды 96 М.
The Most Efficient Struct Configuration Pattern For Golang
11:10
Children deceived dad #comedy
00:19
yuzvikii_family
Рет қаралды 8 МЛН