Go file structure

1 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
This is a free item
$0.00
د.إ0.00
Kz0.00
ARS$0.00
A$0.00
৳0.00
Лв0.00
Bs0.00
B$0.00
P0.00
CA$0.00
CHF 0.00
CLP$0.00
CN¥0.00
COP$0.00
₡0.00
Kč0.00
DKK kr0.00
RD$0.00
DA0.00
E£0.00
ብር0.00
€0.00
FJ$0.00
£0.00
Q0.00
GY$0.00
HK$0.00
L0.00
Ft0.00
₪0.00
₹0.00
ISK kr0.00
¥0.00
KSh0.00
₩0.00
DH0.00
L0.00
ден0.00
MOP$0.00
MX$0.00
RM0.00
N$0.00
₦0.00
C$0.00
NOK kr0.00
रु0.00
NZ$0.00
S/0.00
K0.00
₱0.00
₨0.00
zł0.00
₲0.00
L0.00
QR0.00
SAR0.00
SEK kr0.00
S$0.00
฿0.00
₺0.00
$U0.00
R0.00
ZK0.00
Already have an account? Log In

Transcript

Hi, in the last videos, we talked about the go path. In this video, we're going to be talking about how a typical NGO project is structured. So a typical NGO project has a parent directory called slash NGO, which has three sub directories, the source, the bin, and the package. All of our source code goes over here. So if you want to get started with the new go project, you simply create a folder over here. And as soon as you compile that folder, all of the compiled binaries are going to go inside this folder slash bin slash package contains all of the intermediate objects that are to be linked during compile time to create a self contained binary.

So I used a lot of jargons over here, so I'm just gonna step back and explain it to you step by step. So the go compiler has a function called the linker. So every time you compile your source code, it looks inside the package directory for prerequisites. And combining both of these two using the linker it creates a self contained binary. So that is a pretty good thing about go that all of its binaries are self contained. So I'm going to show you or demonstrate of the fighters Don't go, you just CD into your go path.

And you'll be able to see the source, the bin and the package. So if you go to source you'll be able to see all of the projects over here. And if you go to package you will be able to see all of the packages, the Linux AMD 64, dependencies and everything. And the bin. bin directory has all of the compiled binaries so you just do dot slash glide, or dot slash something to run it. So as we move along the further videos, in the more advanced section, we're going to be talking a bit more about the good on time and the go compiler.

Till then see

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.