Jonathan ChaoGo Series: Learning How to Build a Web Service Using Go from Scratch Pt.We’ve got the main service going. It can take requests and process them. Some requests, depends on how you design it, may take a long time…Aug 4, 2023Aug 4, 2023
Jonathan ChaoGo Series: Learning How to Build a Web Service Using Go from Scratch Pt.It’s been a while since we had a new post. I was away for some personal reasons, but now I’m back, hopefully to resume to 2 posts every…Oct 3, 2023Oct 3, 2023
Jonathan ChaoGo Series: Learning How to Build a Web Service Using Go from Scratch Pt. 12 — Managers (Services)Now that we have our repos and their interfaces up and ready, we can start connecting to the managers or services. I will use these 2…Jun 19, 2023Jun 19, 2023
Jonathan ChaoGo Series: Learning How to Build a Web Service Using Go from Scratch Pt. 13 — ControllersWe are reaching our controller level. The goal is to create a controller that can get the request from routing and process it with our…Jun 22, 2023Jun 22, 2023
Jonathan ChaoGo Series: Learning How to Build a Web Service Using Go from Scratch Pt. 13 — RoutesWe’ve got our controller. Now it’s just a matter of fact that we need to connect it to some route.Jul 16, 2023Jul 16, 2023
Jonathan ChaoGo Series: Learning How to Build a Web Service Using Go from Scratch Pt. 15 — Putting It TogetherLet’s put everything we’ve got together.Jul 18, 2023Jul 18, 2023
Jonathan ChaoGo Series: Learning How to Build a Web Service Using Go from Scratch Pt. 11 — Gorm and ReposLast time we’ve created a model that we can use to marshal and unmarshal for JSON. It also acts as the object part of ORM for GORM.Jun 16, 2023Jun 16, 2023
Jonathan ChaoGo Series: Learning How to Build a Web Service Using Go from Scratch Pt.Go has its own http package. Normally a request can be handled by using net/http package and simply doJun 7, 2023Jun 7, 2023
Jonathan ChaoGo Series: Learning How to Build a Web Service Using Go from Scratch Pt. 10— Gorm and ModelsI’ve been checking out the packages for SQL. There are sqlc, sqlx, and GORM that are publicly available. There’s a more detailed blog about…Jun 12, 2023Jun 12, 2023
Jonathan ChaoGo Series: Learning How to Build a Web Service Using Go from Scratch Pt. 2— VariablesWe will continue with our series. Today we are talking about variables including how to assign it, how to use it, and the syntax of it.May 5, 2023May 5, 2023
Jonathan ChaoGo Series: Learning How to Build a Web Service Using Go from Scratch Pt. 3— PointersFor those who code in languages like python, pointer is a more unfamiliar concept. It’s weird to see an asterisk or any sort of symbol in…May 6, 2023May 6, 2023
Jonathan ChaoGo Series: Learning How to Build a Web Service Using Go from Scratch Pt. 4— Maps & SlicesIf you use python as your main language, you should be familiar with dictionary (if fact, you should be familiar with it regardless). It’s…May 8, 2023May 8, 2023
Jonathan ChaoGo Series: Learning How to Build a Web Service Using Go from Scratch Pt. 5— Switch CaseGo’s if statements are simple. It’s basically the same as any other language with some minor difference in syntax.May 9, 2023May 9, 2023
Jonathan ChaoGo Series: Learning How to Build a Web Service Using Go from Scratch Pt. 5 — Struct & ReceiverStruct is like an object where you define the attributes inside. The typical example to go for is a car object. In Go, we can define it…May 11, 20231May 11, 20231
Jonathan ChaoGo Series: Learning How to Build a Web Service Using Go from Scratch Pt. 7— Channels & GoroutineChannels and goroutines are two unique features Golang has. It’s supposed to make concurrent programming easy. Each concurrent program is a…May 18, 2023May 18, 2023
Jonathan ChaoGo Series: Learning How to Build a Web Service Using Go from Scratch Pt.For any MVC framework, we often see the need to transform a JSON into model and vice versa. In Golang, it’s a lot similar to other…May 19, 2023May 19, 2023
Jonathan ChaoGo Series: Learning How to Build an Web Service Using Go from Scratch Pt. 1 — Hello WorldI’m new to Go. I’ve read about it but never used it. Because of some reasons, we are building a service in Go. It’s the best chance for me…May 3, 2023May 3, 2023