How to Build and Run a Go ( golang ) Program in Linux Operating System @LearningLad
How to Build and Run a Go ( golang ) Program in Linux Operating System  @LearningLad
Uploaded January 2021 | Updated November 2026, 1 day ago
In this tutorial you will learn how to compile / build and run a go ( golang ) program in Linux operating system.

Here i'm using Manjaro Linux but the process will be same for all Linux distro.

How to install go language in Manjaro Linux using pacman
youtu.be/F1k3_AOfMJM

First we use a simple text editor and write the program.
After that we build the program and generate the executable file using
go build filename.go

to run the executable file use the command
./filename

to give a custom name for the executable file use
go build -o customname filename.go

to run the go program without generating the executable file use the command
go run filename.go

Our Website
LearningLad.com

Social Media
Facebook facebook.com/LearningLad
Twitter twitter.com/LearningLadEdu
Instagram instagram.com/LearningLadOfficial
How to Build and Run a Go ( golang ) Program in Linux Operating SystemHow to Set up Visual Studio Code to Run Python ProgramsHow to Install C/C++ Programming Toolset ( gcc g++ gdb ) in Windows 11 using mingw-w64 and msys2User Input for Arrays in C Using For Loop | Read & Display Array ElementsWhile Loop in C Programming | Infinite Loop Explained with ExamplesPassing Pointers to Functions in C | Modify Variables Using Memory AddressesDo While Loop in C Programming | Syntax, Examples & Menu-Driven ProgramHow to Read Character from the File using fgetc function | File Handling in C LanguageBanking System Project in C Programming - Part 2 | View, Deposit Funds ImplementationHow to Write Characters Using the fputc Function | File Handling in C LanguageLets Build a Banking System Project using C Programming LanguageLearning C Programming Language compared to English
LearningLad |

How to Build and Run a Go ( golang ) Program in Linux Operating System

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER