levibostian / levibostian/dotenv

Generate different data types for Env file

Open
#3 0 comments 0 reactions 0 assignees View on GitHub

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 true or false, make the value a bool data type
  • if the value is a number, use Int, Double/Long, Float as the value.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.