almanack
exposure-notifications-server
almanack | exposure-notifications-server | |
---|---|---|
11 | 69 | |
21 | 2,219 | |
- | - | |
9.0 | 2.7 | |
13 days ago | 11 months ago | |
Go | Go | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
almanack
-
I think I'm going crazy refactoring my web app
You need to add the base template to the ParseFS call. The code here is more complicated than it needs to be. You don’t need to go through the FS yourself. The template parser can do that for you. Look at this example which doesn’t use a base template but could: https://github.com/spotlightpa/almanack/blob/master/layouts/layouts.go You would just change it to
-
Passing sql transactions when not needed
For me, GetBooks is a method on a query object and a query object has a DBTX interface struct field. So if I don’t need a transaction, I just use the normal DB as the DBTX but if I do, I call a method to open a TX first and use that. https://github.com/spotlightpa/almanack/blob/master/internal/db/db.go
- Is there a good example of an open source non-trivial (DB connection, authentication, authorization, data validation, tests, etc...) Go API?
-
ORM or no ORM (and which ones)?
Pagination is just an offset and a limit. There’s another package that handles the math for you: https://github.com/spotlightpa/almanack/blob/master/internal/paginate/paginate.go
- Help with lazy loading routes in Vue Router 3 with Vite
-
sqlc patterns in production
You can have methods on the SQLC structs. They just need to be in a separate file. See https://github.com/spotlightpa/almanack/blob/master/internal/db/page.go eg.
-
How are YOU using generics so far?
So far, just refactoring. I made a concurrency manager to simplify some stuff, and unified some pagination code. It’s like we said before generics: there are places you miss it, but not having it was never a total blocker. I think going working the x/slices x/maps packages will be the biggest time savers.
-
The HTML Data List Element
I ended up shipping this as a similar autocomplete field: https://github.com/spotlightpa/almanack/blob/master/src/comp...
It's a little different because I put the chosen selections on a row above the input row, but the principle is the same.
-
Testing a method which requires an API Key
https://github.com/spotlightpa/almanack/blob/master/internal/herokuapi/herokuapi_test.go#L14:L21
-
How to avoid duplicate code in gorilla/mux middleware
I’m using Chi not Gorilla, but you can see my JWT Auth middleware here: https://github.com/spotlightpa/almanack/blob/master/pkg/api/routes.go#L37
exposure-notifications-server
-
Open source projects to look at for best practices?
Not a small one, but a real-life one, the exposure-notifications-server is usually what I like to recommend, keep in mind that you probably need a bit of Go knowledge and context before looking at it so perhaps it isn't the best introductory project to look at; however I recommend you to bookmark it for future reference.
- What are some resources that can help me gain a deeper understanding of Go?
- Beginner ~ Intermediate Go programmer, how can I get better in go and get out of the "beginner" phase?
-
Has anyone's Covid Exposure Service suddenly been enabled?
Here, I can even link you to an article of how exposure notifications work: https://www.google.com/covid19/exposurenotifications/
- Le « contact tracing » inefficace de TousAntiCovid a été abandonné
-
Is there a good example of an open source non-trivial (DB connection, authentication, authorization, data validation, tests, etc...) Go API?
Google's Exposure Notification Reference Serve is a real life example of what you're asking for.
- Small Ottawa firm subcontracted ArriveCan app to multinationals, documents reveal
-
Massachusetts Secretly Installed COVID Spyware App on Smart Phones: Lawsuit
Which is just a massive misunderstanding of how the contact tracing API works, even if you do believe that it was "surreptitiously installed ... on users [sic] phones".
-
What was the purpose for all the Covid trackers and what did it actually accomplish?
https://www.google.com/covid19/exposurenotifications/ (“The Exposure Notifications System was introduced in an update to Google Play Services. This update did not automatically turn on Exposure Notifications or enable any Exposure Notifications functionality. Exposure Notifications only works if you decide to opt-in.”) Android 6.0 and above.
-
Thanks to everyone still using Exposure Notifications and wearing masks
Source: https://www.google.com/covid19/exposurenotifications/
What are some alternatives?
bun - SQL-first Golang ORM
coronavirus-dashboard - Dashboard for tracking Coronavirus (COVID-19) across the UK
tinykv - tiny in-memory single-app kv (cache) with explicit and sliding expiration
todo-api-microservice-example - Go microservice tutorial project using Domain Driven Design and Onion Architecture!
Listmonk - High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
covid-19-excess-deaths-tracker - Source code and data for The Economist's covid-19 excess deaths tracker
Grafana - The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
golang-standards/project-layout - Standard Go Project Layout
jet - Type safe SQL builder with code generation and automatic query result data mapping
web-frameworks - Which is the fastest web framework?
myapp - 🚀 How to build a Dockerized RESTful API application using Go.
golang-gin-realworld-example-app - Exemplary real world application built with Golang + Gin