Skip to content

Instantly share code, notes, and snippets.

View Alilacream's full-sized avatar
🏠
Working from home

Mohammed Ali Alilacream

🏠
Working from home
View GitHub Profile
@Alilacream
Alilacream / post.handlers.go
Created August 18, 2026 09:55
Socials platform i'm building
in this file, i put a post handler func to POST a data structure post{id, title, content, user_id, created_at...). thep problem was getting the user external id.
so i figured getting the user id from the jwt token itself, YET the bug is the claim is ALWAYS returning an empty map from the r.Context.
which shouldn't be logical ;--;
NOTE: i'm not using Ai, if i'm not handeling this then i'm not a programmer.
[Repo Link](https://github.com/Alilacream/Socials)