For those who are going to use Gorm. The func Delete say's: “WARNING If model has DeletedAt field, GORM will only set field DeletedAt's value to current time” So the row won't be deleted
after the build, you should run the executable, instead you are running "go run main.go" command which does compilation and execution from start, if you are going to call run command you don't have yo build.
few questions: (2nd proj, crud): 1) why slice? map["id"] way much better for search? 2) updateMovie. why delete first? can we just movies[i] = movie? 3) _ = json.New.... for what purpose we use _ = ? json.New... works fine
sometimes the syntax got confusing.. but in those cases chatgpt was of great help.. not to forget, the concepts I am learning while following the video are too awesome! finished lecture 3, 8 more to goooo!
` is called backtick, or backquote, or acute accent (only the latter is valid name if it is used as a diacritical mark), and on my keyboard it is directly left to backspace and requires Shift and pressing either twice or with Space afterwards (as it is a so called dead key). Caret is another name for circumflex - which is ^ - that can only be used when it is not used as a diacritical mark.
He doesn't know because he's literally just copying pre-done projects verbatim. I can't cite where it was but the first "project" is literally a line for line write of an article/doc I read last night when searching how to do basic routing. It's also why he has 100 YT tabs opened at 21:58 the guy is 100% a fraud lmao
I'm really grateful for all the work you expose in this video. I has help me to kick back into go programming. Next time please do not use a mechanical keyboard while recording is quite noisy specially when the video is 8 hours long. Apart from that your work is excellent.
wow, just wow. The timing couldn't be better than this, I've been learning golang from the last week and I was thinking about doing some projects, thanks a lot freecodecamp and akhil sharma for this :)
Great video for people first learning Go, getting hands on experience in a series of smaller projects is much better than one big one. My only advice is with the order. Its very confusing for new people when your second video uses a lot of pointers then it goes into easier ones where it explains the pointers much later. For example, the CRM one you go slower and into more detail than things we have already done previously where the knowledge is assumed.
If you are a beginner and want to learn by doing projects then don't watch this video. But if you are a professional GO developer and want to waste your time, you can watch it. He uses databases such as MySQL, SQLite, etc. in the projects but doesn't show how to set them up and connect them to GO programs. He doesn't teach anything that a beginner can understand.
I created a tutorial video on to connect to MySQL using docker ua-cam.com/video/tBskp08-3kA/v-deo.html I find the video tutorials good as a begineer in Go myself. The missing connection to MySQL is a challenge I had to spend time to understand how to use MySQL and make it accessible in the third project.
For everyone who are coming to this course without any golang experience I recommend to start with basics because some of the syntax is quite different from other languages. This playlist is quite helpful. Good luck. ua-cam.com/play/PLRAV69dS1uWQGDQoBYMZWKjzuhCaOnBpa.html
This playlist is good, I actually started with this. 24-25 videos are quite great but then he just starts jumping and everything seems to fly. I am actually facing lot of issues in grasping the language. Could you suggest any other sources, it would b a great help.
The guy at the beginning saying everytime, to take skills to next level, but when I start working on project with some of the technologies presented here, I'm total noob or worst than that.
Starts "Learn Go Programming.." "btw I'm assuming you know html and that's why I'm not explaining a lot of things" BOLD OF YOU TO ASSUME I KNOW ANOTHER LANGUAGE WHILE IN A TUTORIAL FOR GO. *Puts on C/C++ dev hat and kicks the door*
Follow up with Project 3: "So here I'm putting my link to local mysql database" *looks at string of unexplained characters* "And now I'm going to check my database connection on Postman" ... *waits for tutorial on setting up database or a link to another tutorial* ... "SO IN THIS TUTORIAL WE"RE USING SLACK" F*** man, make your tutorials self-contained.
A couple of thoughts: 1) I've got a 32 inch screen and still cannot clearly read what you are coding. Perhaps use larger font when showing code? 2) When you move to a terminal, all we see is a blue screen at first. Why not just use the terminal in VS Code which is already on your screen? 3) What is 'Postman'? I'd never heard of it, so I did some searching and found out. You, on the other hand, assumed everyone had it installed or even could install it. 4) If you are going to use a tool that only works on Windows, Mac, or Linux on a (amd64, i386) architecture, perhaps you should say so up front. I'm running Linux on an ARM64 core and finding out I can't use the tutorial after an hour of coding is really annoying. 5) Kind a repeat of item 3... When you mentioned prerequisites, you mentioned GoLang and nothing else. The 'Postman' agent needs to be run locally for it to work that makes it a prerequisite. Just saying. For that matter, you have to have a MYSQL server running for one of your tutorials... This is a VERY common issue with what freeCodeCamp.org produces. I've just started learning Go and was excited to see this tutorial. My mistake. That said, the fact that he produces a structural diagram of the project before he starts is wonderful. This is absolutely necessary in a 'beginners' tutorial and not nearly enough tutorials have it. I've done technical documentation, chalk talks, and tutorials all my life (I'm 63) and the one thing I never skimp on is pictures/diagrams/etc. Thank you.
1) You could try zooming in the browser. In case of chrome, ctrl + will zoom the screen. 2) Powershell on windows has much more native capability than PS on the VS. Again, its a personal choice sir. You could choose to use VS Codes terminal. 3) Postman is a pretty common tool to test and collect the APIs, and its capability to save and help with the environment variables helps a lot. It is given for any level of developer to know of postman sir. No offense. 4) You could try docker containers running on your machine, if that may help.
Several holes here that are hard to understand or not explained at all. First one is why do you use fmt.Printf("Starting server at port 8000 ") instead of Println. Second one is why do you choose a pointer to Director instead of a value. Third thing is when you are deleting a movie you dont really explain that movies[:index] is really movies from 0 to index-1. These are things that I would consider essential to learning the language. It would probably be a good idea to have some basic knowledge of the language in order to do these projects and fully understand whats going on. Nonetheless, thank you for sharing your knowledge and different takes on using the language in a real and useful way.
If you want to keep your array "ordered", you have to shift all of the elements at the right of the deleting index by one to the left, this can be done easily in Golang func delete(slice []int, s int) []int { return append(slice[:s], slice[s+1:]...) }
The project code for the 'Build A CRUD API With Golang' section of the video points to the project code for 'Golang With MYSQL Book Management System' section of the video. Does anyone have the project code for the 'Build A CRUD API With Golang'?
I will suggest please use Bracket Pair Colorizer, and also dont add all the packages at the very first go. in that way code is cleaner and you only add package when you need them
As a Windows user, I actually like Windows Terminal a lot. The latest version is really awesome. Let's you open multiple types of terminals in different tabs.. etc. HIGHLY RECOMMEND.
As a suggestion dont jump between Powershell and VS Code for executing the caamnds. Execute the commands from VS code Terminal itself. Its more productive people who are coding for first time may freak out.
2:40:06 you installed the slacker package but then you used go mod tidy and since it wasn't used at the point (when you used go mod tidy) it took it out.
for the books mgt system, shouldnt the connection string be - `user:password@tcp(host:port)/database` ?? When did you create the db ? When did you structure the db ?
Hello, cool tutorial, I want to go through it for some reason, the first project does not work for me .. it does not see the files in the static folder
Ma men worries about us not understanding what MVC is and then writes a bunch of code in a syntax that is not common and doesn't even take the time explain it.
I know this is a Golang tutorial. But I am a surprised of the non-usage of simple shortcuts in VSCode. Like a simple ! with a tab in VSCode would be a shortcut to a basic HTML structure without having to code it manually.
I believe he mentions time and again in the video, that since it is a tutorial he is aiming to let your muscle learn to code. Use it as you find it fit sir.
Golang With MYSQL Book Management System is missing DB setup part =( It basically assumes that you already have it set up and running, so you can't immediately run it to test=(
Can someone tell , in the bookstore project , how is database getting connected , and what is that username password for , like where do i have to signup to get that, and like how do we load github pkg models and all files from github , do i put your(akhil sharama) github url in my project , or do i pull everything from your repo and put it in my repo & then put my github url to load pkg ,models..and all files
In the book management section...When does the init function to start the database get called?? func init (){ config.Connect() db=config.GetDB() db.AutoMigrate(&Book{}) }
Thanks a lot for featuring me Beau! I hope a lot of people benefit from this content. I am really happy to share all my knowledge.
Thanks Akhil for your effort. learned a lot from your videos
Thank you for a great course!
That is you! That Indian guy whom all beginners programmers thank
@@Александртень-ф4т haha! Yes bro
You are the best.
If using a recent go version (1.17+) you will need to do a "go mod init" in your project directory before using "go get "
Where have you been... I searched the whole Internet for this knowledge🥲
How ?
Like running it in a command line ?
@@kareemhameed4042 Yes, run this command in terminal
thank you....searched so much elsewhere when the answer was in the comment section itself
So is it outdated?
Your upload timing is better than youtube's recommendation algorithm.
You're doing great!
Highly appreciated..
This video is a gold mine for the go developers! Just get into it, and start digging.
I've found the job, and there is required Golang, thanks for tutorial. it really helps me to learn.
For those who are going to use Gorm.
The func Delete say's: “WARNING If model has DeletedAt field, GORM will only set field DeletedAt's value to current time”
So the row won't be deleted
db.Unscoped().Where("ID=?", Id).Delete(book)
Perfect timing! A friend was asking for something to learn and do projects on Go!
after the build, you should run the executable, instead you are running "go run main.go" command which does compilation and execution from start, if you are going to call run command you don't have yo build.
few questions: (2nd proj, crud):
1) why slice? map["id"] way much better for search?
2) updateMovie. why delete first? can we just movies[i] = movie?
3) _ = json.New.... for what purpose we use _ = ? json.New... works fine
sometimes the syntax got confusing.. but in those cases chatgpt was of great help.. not to forget, the concepts I am learning while following the video are too awesome! finished lecture 3, 8 more to goooo!
Good note - thanks for this!
Thank you for your awesome work! 🔥Гайхалтай заавар бичлэг, прожектууд оруулсанд баярлалаа!
` is called backtick, or backquote, or acute accent (only the latter is valid name if it is used as a diacritical mark), and on my keyboard it is directly left to backspace and requires Shift and pressing either twice or with Space afterwards (as it is a so called dead key). Caret is another name for circumflex - which is ^ - that can only be used when it is not used as a diacritical mark.
He doesn't know because he's literally just copying pre-done projects verbatim. I can't cite where it was but the first "project" is literally a line for line write of an article/doc I read last night when searching how to do basic routing. It's also why he has 100 YT tabs opened at 21:58 the guy is 100% a fraud lmao
Very clear voice with a clear neutral accent, couple that with this mzing tutorial and you have coders heaven😀😁
I'm really grateful for all the work you expose in this video. I has help me to kick back into go programming. Next time please do not use a mechanical keyboard while recording is quite noisy specially when the video is 8 hours long. Apart from that your work is excellent.
The way you use conditionals with functions, got me thinking. Thanks!
Nice !! we can use " mkdir -p pkg/config pkg/controllers pkg/models pkg/routes pkg/utils " to create the folder structure quickly
You can even use shell expansion to make this shorten: mkdir -p pkg/{config,controllers,models,routes,utils}
@@sarevoker Terrific! Thanks a lot for the tips
@@sarevoker wow
Thanks Diego ❤️
why we put in {} and what's the -p for@@sarevoker
Thanks a lot @Amitabh90 @sarevoker
wow, just wow. The timing couldn't be better than this, I've been learning golang from the last week and I was thinking about doing some projects, thanks a lot freecodecamp and akhil sharma for this :)
How long does it take to learn golang? I have already learned Vapor backend.
Wow Akhil Sharma is the best for golang.
Great video for people first learning Go, getting hands on experience in a series of smaller projects is much better than one big one.
My only advice is with the order. Its very confusing for new people when your second video uses a lot of pointers then it goes into easier ones where it explains the pointers much later. For example, the CRM one you go slower and into more detail than things we have already done previously where the knowledge is assumed.
This is because he just joined a bunch of videos from his channel. And there is no particular order.
very nice tutorials !!! I used go mod init and first 2 projects completed very smoothly!!!
Wow! This is such a good follow up from your previous Go vidoes! I look to starting this when I finish my uni semester.
Go言語の講座の配信ありがとうございます。
Best way to learn new language. Thanks 3000
Thanks to Akhil 3000.100
completed and follow alonged 7 projects till now 4 more to go
If you are a beginner and want to learn by doing projects then don't watch this video. But if you are a professional GO developer and want to waste your time, you can watch it. He uses databases such as MySQL, SQLite, etc. in the projects but doesn't show how to set them up and connect them to GO programs. He doesn't teach anything that a beginner can understand.
Damn. Any tutorial recommendation for beginner projects?
@@Dekibtw
Search for gophercises you'll practice with real world projects
I signout 😅😅😅
I created a tutorial video on to connect to MySQL using docker ua-cam.com/video/tBskp08-3kA/v-deo.html
I find the video tutorials good as a begineer in Go myself. The missing connection to MySQL is a challenge I had to spend time to understand how to use MySQL and make it accessible in the third project.
The tutorial is about go. Not sql. Watch a video for sql if that's what you need.
For everyone who are coming to this course without any golang experience I recommend to start with basics because some of the syntax is quite different from other languages. This playlist is quite helpful. Good luck.
ua-cam.com/play/PLRAV69dS1uWQGDQoBYMZWKjzuhCaOnBpa.html
This playlist is good, I actually started with this. 24-25 videos are quite great but then he just starts jumping and everything seems to fly. I am actually facing lot of issues in grasping the language. Could you suggest any other sources, it would b a great help.
Akhil Sharma ,you saved my countless hours of useless project building which used repetitive ideas and not much learning.
Thanks a lot @AkhilSharmaTech for these 11 projects. Your contribution is invaluable
Now do this for Rust please. 10 hours of building projects please!
YES ABSOLUTELY!
alright, i'll do that and take beau's help to host it here
@@AkhilSharmaTech Thanks man, really appreciated
that would be sick!
Guys, on my channel, there are more than 20 rust projects there
this channel is reading my mind so hard !! ty ^^ !
I want to finish this, but the keyboard clicking and clacking is making my head explode. Thanks for recording and posting anyway.
Is it just me, or other folks also struggled with setting mysql creds in third "bookstore" project.
I also struggled so I created a tutorial video on to connect to MySQL using docker ua-cam.com/video/tBskp08-3kA/v-deo.html
Thankyou so much! You dont know how much this matters to me.
Thankyou for the course..I just feel that few concepts are not explained.
Lets Go
Edit 1:
1 hr into the course;
beginner friendly, progressive overload of concepts making it very easy to grasp, 10,000 feet view hahaha
The guy at the beginning saying everytime, to take skills to next level, but when I start working on project with some of the technologies presented here, I'm total noob or worst than that.
Nice sir please make vedios of golang for e-commerce level project like organisation level work in golang..
Once again, on time, to the point! Thanks FCC!
Thanks a lot for this video.
I request you to please also add a blog post turials of all the videos they are much faster completed by me
Great video! Thank you! CRUD API with you be easy!Good luck!
Great video. Could you increase the font size on the next one?
I chrome-cast to my large-screen tv. 🙂
@@zahidulislam2068 ayyyyy
Starts "Learn Go Programming.."
"btw I'm assuming you know html and that's why I'm not explaining a lot of things"
BOLD OF YOU TO ASSUME I KNOW ANOTHER LANGUAGE WHILE IN A TUTORIAL FOR GO.
*Puts on C/C++ dev hat and kicks the door*
Follow up with Project 3:
"So here I'm putting my link to local mysql database"
*looks at string of unexplained characters*
"And now I'm going to check my database connection on Postman"
... *waits for tutorial on setting up database or a link to another tutorial*
...
"SO IN THIS TUTORIAL WE"RE USING SLACK"
F*** man, make your tutorials self-contained.
@@VideoNinja117_Plays skill issue
Nice!! This is amazing thank you for this. Love it.
Thank you so much for such a great content 😍😍👌👌👍👍🙌🙌
A couple of thoughts:
1) I've got a 32 inch screen and still cannot clearly read what you are coding. Perhaps use larger font when showing code?
2) When you move to a terminal, all we see is a blue screen at first. Why not just use the terminal in VS Code which is already on your screen?
3) What is 'Postman'? I'd never heard of it, so I did some searching and found out. You, on the other hand, assumed everyone had it installed or even could install it.
4) If you are going to use a tool that only works on Windows, Mac, or Linux on a (amd64, i386) architecture, perhaps you should say so up front. I'm running Linux on an ARM64 core and finding out I can't use the tutorial after an hour of coding is really annoying.
5) Kind a repeat of item 3... When you mentioned prerequisites, you mentioned GoLang and nothing else. The 'Postman' agent needs to be run locally for it to work that makes it a prerequisite. Just saying. For that matter, you have to have a MYSQL server running for one of your tutorials... This is a VERY common issue with what freeCodeCamp.org produces.
I've just started learning Go and was excited to see this tutorial. My mistake.
That said, the fact that he produces a structural diagram of the project before he starts is wonderful. This is absolutely necessary in a 'beginners' tutorial and not nearly enough tutorials have it. I've done technical documentation, chalk talks, and tutorials all my life (I'm 63) and the one thing I never skimp on is pictures/diagrams/etc. Thank you.
You expect every freaking thing Omg.
Could you please. explain how we need to have MySQL runnning?
you cannot clearly read? sir you need some thick glasses
@@jhramirezr the process is explained by someone in the comment section. Please look for it.
1) You could try zooming in the browser. In case of chrome, ctrl + will zoom the screen.
2) Powershell on windows has much more native capability than PS on the VS. Again, its a personal choice sir. You could choose to use VS Codes terminal.
3) Postman is a pretty common tool to test and collect the APIs, and its capability to save and help with the environment variables helps a lot. It is given for any level of developer to know of postman sir. No offense.
4) You could try docker containers running on your machine, if that may help.
Thank you for the content! It is clear and really helpful!
Several holes here that are hard to understand or not explained at all. First one is why do you use fmt.Printf("Starting server at port 8000
") instead of Println. Second one is why do you choose a pointer to Director instead of a value. Third thing is when you are deleting a movie you dont really explain that movies[:index] is really movies from 0 to index-1. These are things that I would consider essential to learning the language. It would probably be a good idea to have some basic knowledge of the language in order to do these projects and fully understand whats going on. Nonetheless, thank you for sharing your knowledge and different takes on using the language in a real and useful way.
I don't think there's any holes. You HAVE to know something about Go to do these tutorials.
If you want to keep your array "ordered", you have to shift all of the elements at the right of the deleting index by one to the left, this can be done easily in Golang
func delete(slice []int, s int) []int {
return append(slice[:s], slice[s+1:]...)
}
@@ivanmaxipereyra3361 Great, bro. It really helps
Darkmode lovers... prepair for a blinding at 2:19 HISSS!!! It burns us!
Let Go with GoLang... Go go go
Need this for c++ !!
Let's gooooo. Really wanted to learn go.
the only one worthy of rocking the iverson jersey for this one boss
Excellent video for all the beginners
Could you please make a video about working with Geth please? Thanks
The project code for the 'Build A CRUD API With Golang' section of the video points to the project code for 'Golang With MYSQL Book Management System' section of the video. Does anyone have the project code for the 'Build A CRUD API With Golang'?
Bookmarked 🔖 now, let's go!
Thanks
thank you!!!
more golang!
font size is really small, Sorry to to say its long video more than 8 hours, it was interesting but can't see more time.
I will suggest please use Bracket Pair Colorizer, and also dont add all the packages at the very first go. in that way code is cleaner and you only add package when you need them
As a Windows user, I actually like Windows Terminal a lot. The latest version is really awesome. Let's you open multiple types of terminals in different tabs.. etc. HIGHLY RECOMMEND.
Good huge effort
A great help for me.
As a suggestion dont jump between Powershell and VS Code for executing the caamnds. Execute the commands from VS code Terminal itself. Its more productive people who are coding for first time may freak out.
Hey guys who finished the course, how much time did you speng on it, did you like it? Thanks in advance!
My best Chanel
wonderful goes one
Thanks a lot.
Excellent Akhil :)
Thanks a lot Beau!! That was awesome
2:40:06 you installed the slacker package but then you used go mod tidy and since it wasn't used at the point (when you used go mod tidy) it took it out.
This might have been a great course, but unfortunately the font was too small to read.
You can zoom it on laptop
Thx, u very explain!)
We need something like this with Java
Perfect timing
Whut????, gaddam!
Between, can we get 11 projects in c# too??
Why is there no mention that MySQL needs to be running?
Thanks for this
When will there be a updated java tutorial with projects. Like java 8 or java 11
Let's Go!
Good tutorial better than paid ones
for the books mgt system, shouldnt the connection string be - `user:password@tcp(host:port)/database` ??
When did you create the db ?
When did you structure the db ?
Hello, cool tutorial, I want to go through it for some reason, the first project does not work for me .. it does not see the files in the static folder
Waiting for this
your merchandise page doesn't have a favicon. May be, the fire logo of your page works?
How in the world do you remove something using append? What is movies[ index+1: ] ? what means those ':' after index+1?
and pls do tensorflow for c/c++
Nice video
Ma men worries about us not understanding what MVC is and then writes a bunch of code in a syntax that is not common and doesn't even take the time explain it.
I know this is a Golang tutorial. But I am a surprised of the non-usage of simple shortcuts in VSCode. Like a simple ! with a tab in VSCode would be a shortcut to a basic HTML structure without having to code it manually.
I believe he mentions time and again in the video, that since it is a tutorial he is aiming to let your muscle learn to code. Use it as you find it fit sir.
If you go get a module without using it in the project, the go mod tidy will remove it, hence the error in 2:40:35
This is just Live coding and not a course for beginners:)
U r right bro..............................................................................
Let's Gooo!!
Good going!
Thanks for these tutorials. With the CMS section, my app won't start because it can't find the db. We don't seem to specify where the db should exist?
Golang With MYSQL Book Management System is missing DB setup part =( It basically assumes that you already have it set up and running, so you can't immediately run it to test=(
you need to change your keyboard, it is impossible to listen to you while you are typing something in your keyboard
Can someone tell , in the bookstore project , how is database getting connected , and what is that username password for , like where do i have to signup to get that, and like how do we load github pkg models and all files from github , do i put your(akhil sharama) github url in my project , or do i pull everything from your repo and put it in my repo & then put my github url to load pkg ,models..and all files
In the book management section...When does the init function to start the database get called??
func init (){
config.Connect()
db=config.GetDB()
db.AutoMigrate(&Book{})
}
it is automatically called
Good video but he skips many important parts. Like setting up AWS, MySQL and such.