Skip to content

v1.0.1

Latest

Choose a tag to compare

@ableinc ableinc released this 28 Feb 01:17
· 5 commits to main since this release

What's New in v1.0.1

🎉 New Features

Environment File Support

  • Added --env_file / --env flag to load environment variables from a .env file
  • Supports standard .env format with KEY=VALUE syntax
  • Environment variables from file are loaded first, CLI --envs flags can override them
  • Validates that the specified env file exists before starting

📝 Configuration

Added new configuration option in gohot.yaml:

env_file: .env

📚 Documentation

  • Updated README for the new env_file option
  • Added usage examples showing both CLI and config file usage

🛠️ Developer Experience

  • Added comprehensive Makefile with targets for:
    • Building (dev, production, cross-platform)
    • Testing (unit tests, coverage, benchmarks)
    • Code quality (fmt, vet, lint)
    • Maintenance (clean, deps, version)
    • Development (run, watch with hot-reload)
  • Run make help for all available commands

Usage Example:

# Load environment variables from .env file
gohot --env_file .env

# Or use the short alias
gohot --env .env

# Combine with other options
gohot --env .env --envs "DEBUG=true"