Gabriel Radureau 8103f64db9 Add configuration management with Viper
- Implement pkg/config package with Viper integration
- Support environment variables with DLC_ prefix
- Add configurable server host, port, and shutdown timeout
- Update server to use configuration values
- Add config.example.yaml template file
- Update AGENTS.md with configuration documentation
- Maintain backward compatibility with default values

Configuration options:
- DLC_SERVER_HOST (default: 0.0.0.0)
- DLC_SERVER_PORT (default: 8080)
- DLC_SHUTDOWN_TIMEOUT (default: 30s)
2026-04-03 13:53:57 +02:00
2026-04-03 12:23:18 +02:00
2026-04-03 13:53:57 +02:00
2026-04-03 13:53:57 +02:00

DanceLessonsCoach

A simple Go project demonstrating idiomatic package structure and CLI implementation.

Features

  • Greet function with default behavior
  • Command-line interface
  • Unit tests
  • Go 1.26.1 compatible

Installation

# Clone the repository
git clone https://github.com/yourusername/DanceLessonsCoach.git
cd DanceLessonsCoach

# Build and run
go run ./cmd/greet

Usage

# Default greeting
go run ./cmd/greet
# Output: Hello world!

# Custom greeting
go run ./cmd/greet John
# Output: Hello John!

Testing

# Run all tests
go test ./...

# Run specific package tests
go test ./pkg/greet/

Project Structure

DanceLessonsCoach/
├── cmd/
│   └── greet/
│       └── main.go          # CLI entry point
├── pkg/
│   └── greet/
│       ├── greet.go         # Core library
│       └── greet_test.go    # Unit tests
├── go.mod                   # Go module definition
└── README.md                # Project documentation

License

MIT

Description
No description provided
Readme 57 MiB
Languages
Go 71.2%
Shell 21.7%
Gherkin 3.9%
TypeScript 1.4%
Vue 0.5%
Other 1.2%