Files
certman/utils/env.go
Björn Benouarets 309e2794a1 feat: add storage management and utility functions
- Implement storage service for file management
- Add support for external and system storage backends
- Include utility functions for environment variables
- Add hash utilities for secure operations
- Implement validation utilities for data integrity
- Support file encryption and secure storage
- Add proper error handling and logging for storage operations
2025-09-30 11:45:16 +02:00

12 lines
212 B
Go

package utils
import "os"
// GetEnv gets an environment variable with a fallback value
func GetEnv(key, fallback string) string {
if value := os.Getenv(key); value != "" {
return value
}
return fallback
}