Building a GO API - No External Packages!

  Рет қаралды 3,418

Alex Mux

Alex Mux

Күн бұрын

Пікірлер: 12
@munraitoo13
@munraitoo13 5 күн бұрын
Just finished your Go crash course and was looking for tutorials on how to build an api with no frameworks or external libs, which ended on me finding you again. Keep doing this great work man!
@fennfo5039
@fennfo5039 3 ай бұрын
great video, just like your other "short and straight to the point" videos. thanks.
@MarkWalsh-gc
@MarkWalsh-gc 3 ай бұрын
These videos are fantastic, keep up the good work and thanks!
@Albert-nc1rj
@Albert-nc1rj 3 ай бұрын
I think there is a mistake on 7:31 when we pass clientProfile.Id as a key to our database map, because this is not the key, the key is "user{n}" Instead we should pass clientId from the request I added another value (clientId) to the context in TokenAuthMiddleware func and retrieved it just before updating database map Something like this clientId := r.Context().Value("clientId").(string) db.Database[clientId] = clientProfile And it worked But I don't know if adding several values to a context is a good practice... Overall, nice video, thank you
@mr_mux408
@mr_mux408 3 ай бұрын
Hey Albert, I am assuming that clientProfile.Id is the same as the key. The key-value pair setup of the database is just and easy way to lookup, kind of like if we created an index on the "Id" field in our database.
@Albert-nc1rj
@Albert-nc1rj 3 ай бұрын
@@mr_mux408 oh, I see, thanks
@PhilipAlexanderHassialis
@PhilipAlexanderHassialis 3 ай бұрын
Very good, very clean! Thank you for packing a lot of useful information in a no-frills, straight-to-the-meat explanation! Is there a chance to augment this with a second part on how to create the Bearer JWT with claims etc in it using *only* standard Go packages?
@mr_mux408
@mr_mux408 3 ай бұрын
Good idea I will add that to the list of topics 🙏
@chethelesser
@chethelesser 3 ай бұрын
Thank you, great video! I see no on has commented that this is not ackchually RESTful so I'm doing it
@samfam5208
@samfam5208 3 ай бұрын
First
@mr_mux408
@mr_mux408 3 ай бұрын
Second
@samfam5208
@samfam5208 3 ай бұрын
@@mr_mux408 opps we forgot zeroth
Golang Context Package: It's More Than You Think!
8:26
Alex Mux
Рет қаралды 2,6 М.
Learn GO Fast: Full Tutorial
1:07:53
Alex Mux
Рет қаралды 513 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Golang Project: Building a Secure Login Portal
10:39
Alex Mux
Рет қаралды 8 М.
Coding Was HARD Until I Learned These 5 Things...
8:34
Elsa Scola
Рет қаралды 824 М.
Why I Use Golang In 2024
9:21
ThePrimeTime
Рет қаралды 364 М.
The standard library now has all you need for advanced routing in Go.
13:52
How to create your Golang APIs from now on with v1.22
12:51
The Weird Rise Of Anti-Startups
12:57
Enrico Tartarotti
Рет қаралды 415 М.
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 868 М.
What’s Up with Laravel? It’s Everywhere, and Here’s Why!
6:22
пранк: псих сбежал из дурдома
0:53
Анна Зинкина
Рет қаралды 1,7 МЛН
Robot 🤖 cleaning 🧹
0:57
Bunnal 𝚃𝚎𝚌𝚑
Рет қаралды 4,7 МЛН
SH - Anh trai & Em gái || Brother & Sister #shorts
0:58
Su Hao
Рет қаралды 48 МЛН
для всей семьи
0:56
Стакановец
Рет қаралды 191 М.
ПОСТАРЕЛА ЗА 1 ДЕНЬ НА 20 ЛЕТ - МУЖСКОЕ ЖЕНСКОЕ
55:44
ПРИЯТНЫЙ ИЛЬДАР
Рет қаралды 677 М.