Show HN: Dotenv library for the v programming language(github.com)
github.com
Show HN: Dotenv library for the v programming language
https://github.com/treffner/vdotenv
2 comments
This is a module for applications written in v.
It helps if your application uses different settings like database credentials for production vs development.
I had the idea to create it as early as 2019 when I needed it for another project.
I looked for an existing module, but there wasn't one.
By the time I could actually program and release it I found there was already another dotenv module available. That was a bummer.
I found out that the other dotenv module doesn't strictly follow docker-compose .env syntax rules. So this is what makes my module different.
Later I added some gimmicks. E.g. auto create the missing .env file on first run prefilled with placeholders of the variables that are needed. Also support for the 'export' keyword was added.
This is the first open source repository from me. Please tell me if I've missed something.