godotenv
chi
Our great sponsors
godotenv | chi | |
---|---|---|
17 | 100 | |
7,407 | 16,857 | |
- | 2.5% | |
3.7 | 7.2 | |
3 days ago | 20 days ago | |
Go | Go | |
MIT License | MIT License |
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.
godotenv
-
Autenticação com Golang e AWS Cognito
Primeiro vamos carregar nossas envs com o pacote godotenv, depois iniciamos nosso cognito client, passando o COGNITO_CLIENT_ID, que pegamos anteriormente, depois iniciamos o gin e criamos um server, isso é o suficiente.
-
Tools besides Go for a newbie
IDE: use whatever make you productive. I personally use vscode. VCS: git, as golang communities use github heavily as base for many libraries. AFAIK Linter: use staticcheck for linting as it looks like mostly used linting tool in go, supported by many also. In Vscode it will be recommended once you install go plugin. Libraries/Framework: actually the standard libraries already included many things you need, decent enough for your day-to-day development cycles(e.g. `net/http`). But here are things for extra: - Struct fields validator: validator - Http server lib: chi router , httprouter , fasthttp (for non standard http implementations, but fast) - Web Framework: echo , gin , fiber , beego , etc - Http client lib: most already covered by stdlib(net/http), so you rarely need extra lib for this, but if you really need some are: resty - CLI: cobra - Config: godotenv , viper - DB Drivers: sqlx , postgre , sqlite , mysql - nosql: redis , mongodb , elasticsearch - ORM: gorm , entgo , sqlc(codegen) - JS Transpiler: gopherjs - GUI: fyne - grpc: grpc - logging: zerolog - test: testify , gomock , dockertest - and many others you can find here
-
Libraries you use most of your projects?
https://github.com/joho/godotenv - load env file (or sometimes https://github.com/spf13/viper or load https://github.com/yosuke-furukawa/json5 directly)
-
Restful API with Golang practical approach
envconfig: Library for managing configuration data from environment variables (https://github.com/joho/godotenv)
-
Is this clear why its useful?
There is already a more complete, safer and neatly written godotenv alternative. It may be taken as an educational inspiration for next attempts.
-
How can I "source" a bash script?
Maybe https://github.com/joho/godotenv can help
-
passwords, secrets, keys - best practice
joho/godotenv
- I'm looking for a good alternativ to Viper
-
Build a REST API with Golang and MongoDB - Fiber Version
Go Environment Loader
chi
-
Preventing SQL Injection with Golang
This will be the structure of our project, we will use PostgreSQL as the database, go chi to create our endpoints, go dot env to import our environment variables.
-
Build a Golang Todo App Backend: A Step-by-Step Guide
go-chi: is a lightweight, idiomatic and composable router for building Go HTTP services.
- Evitando SQL Injection com Golang
- API completa em Golang - Parte 2
-
API completa em Golang - Parte 1
Go Chi para criar nossas rotas
-
newbie here looking for a framework
For HTTP I'd look at Chi https://github.com/go-chi/chi
-
The Gorilla web toolkit project is being revived, all repos are out of archive mode.
In fact, it has zero dependencies outside of std lib in it's core: https://github.com/go-chi/chi/blob/master/go.mod
-
REST API with Go, Chi, MySQL and sqlx
chi
-
Fastest Way to Learn Golang?
Go by Example -> CRUD backend with chi
-
Could I get a code review?
Use a library for HTTP serving, such as Gin, Chi, or Echo. I personally use Chi, as it's just the right level of abstraction for how I like to work. Despite what others say here, don't try to re-implement everything in a modern serving library using the standard library.
What are some alternatives?
Gin - Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
Echo - High performance, minimalist Go web framework
mux - A powerful HTTP router and URL matcher for building Go web servers with 🦍
Fiber - ⚡️ Express inspired web framework written in Go
viper - Go configuration with fangs
httprouter - A high performance HTTP request router that scales well
go-kit - A standard library for microservices.
websocket - A fast, well-tested and widely used WebSocket implementation for Go.
kin-openapi - OpenAPI 3.0 (and Swagger v2) implementation for Go (parsing, converting, validation, and more)
Iris - The fastest HTTP/2 Go Web Framework. New, modern and easy to learn. Fast development with Code you control. Unbeatable cost-performance ratio :rocket:
negroni - Idiomatic HTTP Middleware for Golang
Goji - Goji is a minimalistic and flexible HTTP request multiplexer for Go (golang)