Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultHeaderKey = "x-diverge-env"
DefaultHeaderKey is used to extract the preview environment name from the X-Diverge-Env HTTP header.
Variables ¶
This section is empty.
Functions ¶
func EnvironmentFromContext ¶
EnvironmentFromContext extracts the environment name from the context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.