Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get() string
Get returns the detected deployment version. The detection runs only once per process to avoid repeated environment lookups.
It checks multiple environment variables in order:
- DEMETERICS_VERSION (custom)
- DEPLOYMENT_VERSION (custom)
- VERSION_NAME (custom)
- GAE_VERSION (App Engine)
- GAE_DEPLOYMENT_ID (App Engine)
- K_REVISION (Cloud Run)
- K_SERVICE (Cloud Run)
- APP_VERSION (custom)
If none are set, it falls back to "{ENVIRONMENT}-local" or "development-local".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.