levibostian / levibostian/dotenv
Generate different data types for Env file
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 0
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Right now, if I have a .env file:
URL=https://api.cool.com
API_VERSION=10
USE_LOGGING=true
All 3 of the values above will be inserted into the Env class as a string value. I am currently getting around this limitation by making an extension on the Env file. Let's make this Env more intelligent by:
- if value is
trueorfalse, make the value a bool data type - if the value is a number, use Int, Double/Long, Float as the value.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Env generation and .env parsing entry points; no specific files or tests are named in the issue. Done means boolean values become bools, numeric values use an appropriate numeric type, and values such as URLs remain strings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100