Building REST APIs in Go 1.22 - New Features

  Рет қаралды 38,069

TutorialEdge

TutorialEdge

Күн бұрын

Пікірлер: 34
@warherozer
@warherozer 8 ай бұрын
precise and short , i love this.
@Niconelli12
@Niconelli12 7 ай бұрын
( ͡° ͜ʖ ͡°)
@kirillbaryba746
@kirillbaryba746 8 ай бұрын
Thanks! It would be interesting to show how to correctly create a structure for APIs for different entities
@Tutorialedge
@Tutorialedge 8 ай бұрын
Thanks for your comment! That's a great suggestion for a standalone video topic, I'll add it to the queue!
@markmckenzie5343
@markmckenzie5343 8 ай бұрын
Agreed, you have no idea the state of someone's shell history and if they blindly copy even the shortcuts it could be disaster. Better to be explicit.
@0lange
@0lange 8 ай бұрын
love it! Can you make a video on how to structure a go app and best pratices? For instance when you need logging, dependency injection, centralized error handeling and so on?
@Tutorialedge
@Tutorialedge 8 ай бұрын
Great suggestions! I’ll add it to the list, I’ve covered some of these concepts in my courses but never on KZbin!
@sebastiengross7849
@sebastiengross7849 8 ай бұрын
at 5:00 you definitively should learn shell shortcuts: Esc-. (Escape followed by dot) which recalls the latest argument. Could save a lot of time ;-).
@Tutorialedge
@Tutorialedge 8 ай бұрын
I try to generally avoid the shell shortcuts in some videos so that folks have a chance to copy what I’m doing. I usually either search through my command history or just cycle through my last commands when I’m trying to find a command. I hadn’t come across Esc-. though but thanks for sharing!
@juscilan
@juscilan 6 ай бұрын
I wanna migrate from gin-gonic to the standard library. Maybe it would be a great topic to approach on the channel.
@ma34529
@ma34529 8 ай бұрын
I work in cybersecurity, dealing with automations, AWS lambdas, and CLI tooling. Does it make sense to transition to Go, or do I need a really compelling use case other than "it would be fun and better for my resume"?
@Tutorialedge
@Tutorialedge 8 ай бұрын
The answer, as with most things in life, is it depends - Go is fantastic for building network applications and, if you're working in Cyber then that's likely going to be a huge part of it. It does currently run most of the interwebs due to it being the language that tools like Docker and Kubernetes are built in and there are a heck of a lot of start ups and tech companies that are actively trying to adopt Go. CircleCI for example has been actively pushing it's Go adoption for the past few years now and it's paying dividends with increased developer productivity. It does have a growing community and a thriving developer ecosystem so I would say it's definitely worth considering. I've been primarily a Go developer for the past 5 years now so it's served me very well in my career!
@jaimebondoza3710
@jaimebondoza3710 2 ай бұрын
hahaha finally. damn. this should have been a feature ten years ago but i'll take it now thanks for letting us know
@CeriDavies1
@CeriDavies1 2 ай бұрын
Hi, I'm running Go 1.23, which I just updated to, and this syntax is not working "GET /comment" compiles but I get 404 Error, using the old style "/comment" works. I'm on a Mac. VS Code and bash are showing my go version as 1.23 (This may be a user error, could I be using an old net/http package?) I just looked at the documentation 1.22.2 and latest 1.23.0 for net/http, and they don't show this as a option. What am I missing?
@CeriDavies1
@CeriDavies1 2 ай бұрын
P.S. I love your style and how concise you are.
@dgaa1991
@dgaa1991 5 ай бұрын
Have you found a way to handle CORS with the new syntax?
@amer3h
@amer3h 3 ай бұрын
Im new , which is best this one or gin or chi ?
@kostais
@kostais 8 ай бұрын
Thank you
@DevlogBill
@DevlogBill 5 ай бұрын
When you say this new update doesn't depend on 3rd party packages. Does that mean I don't need to use AXIOS for an SPA like React? I can use only the standard library? Still fairly new to programming so please excuse my ignorance, I've been looking at different backends to support my React project, Thanks for the video!
@steveo959
@steveo959 5 ай бұрын
Hey what he means is that in the past in go to make routes with the standard library was cumbersome so they made it easier in the new update. So for your react you will still need things like axios to query the API in golang.
@DevlogBill
@DevlogBill 5 ай бұрын
@@steveo959 Yea the other day I was reading the docs and I was disappointed that wasn't the case. BUT what you say makes sense I understood a portion of the updates from the docs, thanks for clarifying that for me. Still researching but now between FastAPI and Go.
@masterchief1520
@masterchief1520 4 ай бұрын
​@@DevlogBilltry go. It's really fun. It's so easy and it gives that performance for free. Ideology of sticking to standard ways is actually good as opposed to the shitshow in node
@KaisELHADJMUSTAPHA
@KaisELHADJMUSTAPHA 8 ай бұрын
I could basically build the same thing in express, what does GO add to the table ?
@Tutorialedge
@Tutorialedge 8 ай бұрын
You certainly could - if you are more confident with express then I encourage you to continue using that for your projects. If you need better concurrency support, or perhaps higher performance servers with stronger typing then Go may be preferential in that scenario. As engineers, we should be picking the best languages and tools for the tasks at hand
@KaisELHADJMUSTAPHA
@KaisELHADJMUSTAPHA 8 ай бұрын
@@Tutorialedge Yeah exactly, this is why I wanted to know if building simple APIs in GO could imrove stuff in comparison to doing so in express or python, thanks for the tips and the video, I will be diving more into GO :')
@SportsInfo.Official
@SportsInfo.Official 8 ай бұрын
Hey can you tell which vscode theme are you using ?
@SleepeJobs
@SleepeJobs 8 ай бұрын
cobalt theme
@SportsInfo.Official
@SportsInfo.Official 8 ай бұрын
@@SleepeJobs thanks 👍
@AchwaqKhalid
@AchwaqKhalid 8 ай бұрын
Use a *BIGGER FONT* 💡
@saucyalex
@saucyalex 5 ай бұрын
Shit, looking at this whilst being Java dev makes me feel like I’m approaching new density 👀 Btw I’m switching from Java to Go
@statuschannel8572
@statuschannel8572 3 ай бұрын
Java!? you have already seen the worse, nothing will make you suffer than it! Welcome to the better side
@tanmaylenka4024
@tanmaylenka4024 4 ай бұрын
@calebmarquart
@calebmarquart 6 ай бұрын
Cool
Build a Rest API with GoLang
34:14
Laith Academy
Рет қаралды 122 М.
The BEST Tool to Structure Golang Projects
7:58
Melkey
Рет қаралды 36 М.
ПРЯМОЙ ЭФИР. Золотой мяч France Football 2024
4:41:06
Wait for the last one 🤣🤣 #shorts #minecraft
00:28
Cosmo Guy
Рет қаралды 23 МЛН
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 34 МЛН
Understanding Contexts in Go in 5(-ish?) Minutes
15:14
TutorialEdge
Рет қаралды 64 М.
THIS is the BEST Way to Write HTTP Services in Golang
13:53
Golang Web Server and RSS Scraper | Full Tutorial
2:49:35
Boot dev
Рет қаралды 61 М.
Why I Use Golang In 2024
9:21
ThePrimeTime
Рет қаралды 339 М.
Complete Backend API in Golang (JWT, MySQL & Tests)
1:37:57
Tiago
Рет қаралды 113 М.
HTMX & Go with ThePrimeagen | Preview
15:58
Frontend Masters
Рет қаралды 155 М.
What is a REST API?
9:12
IBM Technology
Рет қаралды 1,6 МЛН
32 Reasons WHY TS IS BETTER Than Go
1:09:29
ThePrimeTime
Рет қаралды 258 М.
Golang REST API With Mux
44:03
Traversy Media
Рет қаралды 340 М.
ПРЯМОЙ ЭФИР. Золотой мяч France Football 2024
4:41:06