myapp
🚀 How to build a Dockerized RESTful API application using Go. (by learning-cloud-native-go)
logr
A simple logging interface for Go (by go-logr)
myapp | logr | |
---|---|---|
32 | 9 | |
746 | 1,191 | |
2.9% | 1.3% | |
6.8 | 8.5 | |
14 days ago | 4 days ago | |
Go | Go | |
MIT License | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
myapp
Posts with mentions or reviews of myapp.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-12.
-
After learning the base
I would love to suggest https://github.com/learning-cloud-native-go/myapp and https://learning-cloud-native-go.github.io/ some open source side projects I am working on.
-
Api with database - one continuous connection or one connection for http call
https://github.com/learning-cloud-native-go/myapp shows how to build a Dockerized RESTful API application using Go. It includes a sample RESTful APIs/ CRUD build using Go net/http with Chi router, Postgres, DB migrations, Configs via env variables, Zerolog structural logs, Validator v10, Gorm.
-
Any Working Example for Swagger integartion with golang?
You need to set these env variables/ configs. https://github.com/learning-cloud-native-go/myapp/blob/main/.env
-
Resources for learning Golang
Some open source projects I am currently working on, - https://learning-cloud-native-go.github.io/ - https://github.com/learning-cloud-native-go/myapp
-
Examples of an idiomatic API project
Checkhttps://github.com/learning-cloud-native-go/myapp
- Dockerized RESTful API Application in Go: CRUD,ORM,Logs,Migrations,Validations
- Dockerized RESTful API Application in Go:CRUD,ORM,Logs,Migrations,Validations
- Is there a good example of an open source non-trivial (DB connection, authentication, authorization, data validation, tests, etc...) Go API?
logr
Posts with mentions or reviews of logr.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-21.
- What is the common log library which is industry standard that is used in server applications?
-
Created a small logging library in Go.
logr
-
Logging Library
How about using https://github.com/go-logr/logr You’ll be able to swap concrete implementation easily which will allow you to try out different libs on the market without refactoring all your logic
-
Have you replaced Sirupsen/logrus, and if so, with what?
I recommend https://github.com/go-logr/logr and you can choose implementation freely but zerolog/zap are optimized for speed.
-
Version 1.18 Refresh for Go Programmers
For logging, I use https://github.com/go-logr/logr with https://github.com/uber-go/zap
- Golog: an extensible logger for Go
-
Logger and Clean Architecture
I'd say it depends. If I write a package for others to use I usually don't include a logger at all and let the user decide what he wants to use. For any other project that needs logging I usually skip the interface to not have the struggle with finding one interface that fits all at least logrus and zap. We kinda agreed at the team to just use zap by now. One.thing i wanted to try tho is using sth like logr which provides an interface for the most commonly used loggers.
-
Go Masterpieces
After writing a lot of libraries I really appreciate logr. There are plenty of times when my library needs to output debugging info, but it's not practical to do things like parse flags for verbosity level. With thus I can just log at a higher V level and be done with it.
What are some alternatives?
When comparing myapp and logr you can also consider the following projects:
go-clean-template - Clean Architecture template for Golang services
zerolog - Zero Allocation JSON Logger
gorsk - :fire: Idiomatic Golang Restful Starter Kit
zap - Blazing fast, structured, leveled logging in Go.
golang-standards/project-layout - Standard Go Project Layout
life
lucid - A real golang framework
golog - Golog is a production ready logger which support tracing and other custom behaviours out of the box. Blazing fast and simple to use.
datly
logrus - Structured, pluggable logging for Go.
Moby - The Moby Project - a collaborative project for the container ecosystem to assemble container-based systems
log15 - Structured, composable logging for Go