Vendoring

GetGoing: Introduction to Golang API hosting using heroku
2 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 guys in this video we are going to be rendering our dependencies. So for rendering we are going to be using this package go vendor I'll add the link to the description. So if you look at this project it has given really nice documentation on how you can install it. So you do a go gate and then this thing copied pasted into your terminal and then it's going to install all the whole command line interface for it. Then it gives us commands like go vendor in it, which is going to create a vendor folder and functions like go mod add where we can add external dependencies and go more or go vendor list where we can list external dependencies. So this is done.

So if I go to VS code, I do a go vendor in it. Now you can see that there is a vendor folder created over here with nothing right now. If you take a look at our project, we have just one external dependency which is this go SQL driver or the SQL driver for Golan so we can simply do go window And then we could paste the link. And then it's going to add the repository into our vendor list. So even notice that we have one folder, which has this go SQL driver, external dependency added. So whenever now Now whenever the go compiler compiles the code, it says it looks at this, it says, Okay, this is an external dependency, I'm going to look in the vendor folder, it looks in the vendor folder, and then it finds this way screwdriver, then says, Okay, I found it.

Now I don't need to go to the dollar go path, I have everything that I need to compile right over here. So it's simply going to do go install. And then it's going to build our installation. So you can see that this executed without any errors, because we have we have two things right now. First, we have a vendor and secondly, we have we also have this in our dollar go path. So let's see what happens when you push them, push this to the cloud.

And we're going to get Started with the Heroku CLA in the next video, so stay tuned.

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.