Loading…
Loading…
Go · go-chi
Go apps are built on go-chi for routing, sqlx for Postgres, JWT middleware for auth, and structured logging via zap or slog. Table-driven tests, multi-stage Docker, single-binary deploy.
Every Go app generated by Archiet ships with these baseline pieces. No template-cutting, no placeholder TODOs.
One representative file from a generated Go app. Your generated output will include many more files like this one, customized to the entities and flows in your blueprint.
func (h *ItemsHandler) Create(w http.ResponseWriter, r *http.Request) {
user := auth.FromContext(r.Context())
var body CreateItemRequest
if err := json.NewDecoder(r.Body).Decode(&body); err != nil {
writeError(w, http.StatusBadRequest, "invalid_json")
return
}
item, err := h.svc.Create(r.Context(), user.WorkspaceID, body)
if err != nil {
writeError(w, http.StatusInternalServerError, "create_failed")
return
}
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusCreated)
json.NewEncoder(w).Encode(map[string]any{"data": item})
}Pick Go when binary size and memory matter, or you're shipping something that needs to run as a single static binary. Loved by infra teams.