Skip to content

Batyachelly/envgen

Repository files navigation

envgen

codebeat badge Go Report Card Go Doc Release

Utility to parse golang env structures into .env files.

Getting started

  1. Download swag by using:
go install github.com/Batyachelly/envgen/cmd/envgen@latest
  1. Run envgen in the project's root folder which contains a config files.
envgen -target=example/config.go -structs=Config,AnotherConfig1,AnotherConfig2 -output_dir example/generated