
- 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
12 lines
212 B
Go
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
|
|
}
|