03 - Application Architecture

preview_player
Показать описание
Learn about application architecture based on clean architecture in this Golang application for managing user accounts and authentication. We'll describe our application layers and how they lend themselves to unit testing. We'll also scaffold out application models, errors for handling http errors, and interfaces defining the expectations of each layer.

For a written tutorial, check out:

All code for this tutorial can be found on Github!
Рекомендации по теме
Комментарии
Автор

Really appreciate you taking the time to make this🙌🏻 so far everything has been clearer and digestible

JinayShah
Автор

I find SQLC is more neat than SQLX, the performance is quite similar to raw sql package. Awesome tut!

SoumitraChakravarti
Автор

i don't understand

TYPE TYPE ? how we can a variable = to it's type, very strange

Also hard thing is

// status code if the error is model.Error
func Status(err error) int {
var e *Error
if errors.As(err, &e) {
return e.Status()
}
return
}

asmr_codster