app - Application Framework
Overview
The app module provides application framework utilities including organization name, version, and release type management.
Variables
Organization
Description:
- Organization name for the application
- Used for config and cache directories
Name
Description:
- Application name
- Set at build time
Version
Description:
- Application version
- Set at build time
Build Information
Release Type
Type Definition
String()
Get release type as string.
Returns:
- "debug", "test", "alpha", "beta", or "release"
Example:
Debug()
Get release type as debug string.
Returns:
- Release type as string
Environment Configuration
Package Type
Description:
- Current package type
- Set based on
APP_ENVenvironment variable
Environment Variables:
APP_ENV=devordevelopment→ DebugAPP_ENV=testorcanary→ TestAPP_ENV=prodorreleaseorproduction→ ReleaseAPP_ENV=alpha→ AlphaAPP_ENV=beta→ Beta
Example:
Usage Patterns
Application Information
Environment-Based Behavior
Feature Flags
Configuration Paths
Best Practices
Build Information
Environment Handling
Related Documentation
- runtime - Runtime information
- config - Configuration management
- API Documentation
- Module Overview