blog-code-samples
Sample projects and code from my blog posts (by kashifsoofi)
kelseyhightower/envconfig
Golang library for managing configuration data from environment variables (by kelseyhightower)
blog-code-samples | kelseyhightower/envconfig | |
---|---|---|
3 | 15 | |
7 | 4,902 | |
- | - | |
8.9 | 0.0 | |
3 months ago | 7 months ago | |
Go | Go | |
- | MIT License |
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.
blog-code-samples
Posts with mentions or reviews of blog-code-samples.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-08-19.
-
Integration Test MySQL with testcontainers-dotnet
Source for Integration Test MySQL (testcontainers-dotnet) workflow is in integration-test-mysql-testcontainers-dotnet.yml.
-
REST API with Go, Chi, MySQL and sqlx
I will start by copying the content of https://github.com/kashifsoofi/blog-code-samples/tree/main/movies-api-with-go-chi-and-memory-store, placing it in a new folder movies-api-with-go-chi-and-mysql and updating module name in go.mod to match the new folder and updating in source files where its used. This will usually be the root of your git repo and will not be as elaborate as this.
-
REST API with ASP.NET Core 7 and SQL Server
Source code for the demo application is hosted on GitHub in blog-code-samples repository.
kelseyhightower/envconfig
Posts with mentions or reviews of kelseyhightower/envconfig.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-10-03.
-
newbie here looking for a framework
To configure the app I'd take a look at https://github.com/kelseyhightower/envconfig
-
REST API with Go, Chi, MySQL and sqlx
envconfig
-
What is the most common approach to configure a backend app?
- Having one way of configuring the app is excellent. You can either prefer environment variables, a file, or flags. You can do what Viper does by reading the file and unmarshalling it. The built-in flag package is enough for your flag-based config needs. If you want to prefer environment variables, I prefer https://github.com/kelseyhightower/envconfig
-
Building Robust Applications in Go: Integrating Envconfig, Gorm, and OpenSearch
To extract values from the system environment, I utilize envconfig, a Go package. Envconfig facilitates mapping system environment variables to a Go struct. These Go structs are exposed through a config package, enabling other parts of the application to access them.
- An Efficient Struct Configuration Pattern For Golang
- A new method of configuration load in Golang
-
Configuration management library for stage and production environments ?
You could prefix your env vars and use this package. https://github.com/kelseyhightower/envconfig
-
passwords, secrets, keys - best practice
kelseyhightower/envconfig
-
I'm looking for a good alternativ to Viper
Pretty much all of our services and pkgs use https://github.com/kelseyhightower/envconfig. It’s dead simple, gets out of your way, and is battle tested
-
Looking for a Go(Golang) buddy
https://github.com/kelseyhightower/envconfig (read config from environment variables, more succinct than viper)