new
A helper function to create a pointer to a new object in Go 1.18+ (by earthboundkid)
env
🔍 Load environment variables into a config struct (by go-simpler)
new | env | |
---|---|---|
5 | 3 | |
55 | 54 | |
- | - | |
0.0 | 7.0 | |
over 2 years ago | 15 days ago | |
Go | Go | |
MIT License | Mozilla Public 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.
new
Posts with mentions or reviews of new.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-25.
-
Have yet to use generics...Am I missing out?
Yeah, I have a joke package that does this: https://github.com/carlmjohnson/new
- Share Your Code.. Share your most unique piece of Go code.
- Fun with generics 3: Pointer of value with generics
- Generic fun: new.Of - A helper function to create a pointer to a new object in Go 1.18+
- More fun with Go generics: A new.Of() helper function
env
Posts with mentions or reviews of env.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-15.
-
Share Your Code.. Share your most unique piece of Go code.
Yet another config loader I've built for 12factor apps: https://github.com/junk1tm/env
- 'Discoverable' Environment Variables for Configuration
- A lightweight package for loading environment variables into structs
What are some alternatives?
When comparing new and env you can also consider the following projects:
pointer - Go package pointer provides helpers to get pointers to values of built-in types.
env-vault - Launch a program with environment variables populated from an encrypted file
spidy - Domain names collector - Crawl websites and collect domain names along with their availability status.
pcre - Pure-Go port of the PCRE2 regular expression engine.
blockscan - a mini blockchain scanner
dgo - Efficient, error-free and high-level library for Dart <-> Go interops.
qcl - QCL: Quick Config Loader
config - loads configuration settings from various sources into your struct
stringdedup - String deduplication package for Go
env - A simple and zero-dependencies library to parse environment variables into structs