#First time using Go - built an authentication backend. Can anyone review and give me pointers?

15 messages · Page 1 of 1 (latest)

old dawn
#

Hello all,
I am an experienced web developer and have been using TypeScript for years. I just started learning Go and built a login system for one of my web apps. I don't know any of the "best practices" or stuff like that with Go, but I tried my best. If someone could take a look at my repo and give me some honest feedback, it would be really appreciated. This was partially inspired by a YouTube guide - but I also implemented some of my own practices and methods.

Thanks!

https://github.com/n-ochs/go-auth-jwt

GitHub

Contribute to n-ochs/go-auth-jwt development by creating an account on GitHub.

hollow fable
#

Some thoughts, in no particular order:

There are others, but that's some items that jumped out at me after reviewing the code for 5 minutes or so.

#

Well done, by the way. It is a challenge to go from zero to something, and doubly so to publish that to a community of strangers for criticism. Keep up the good work!

old dawn
hollow fable
#

Happy to answer any questions I can.

old dawn
hollow fable
#

github.com/stretchr/testify popular companion module as it includes a bunch of handy test matchers that can significantly DRY up your test code. It's a matter of taste whether or not you use it or something else or stick just with the standard library.

old dawn
#

awesome, thanks again!

hollow fable
#

A handy cheat sheet with common idioms that will help you write code familiar to other Gophers