website: golang.org/x/website/internal/env Index | Files

package env

import "golang.org/x/website/internal/env"

Package env provides environment information for the golangorg server running on golang.org.

Index

Package Files

env.go

func CheckCountry Uses

func CheckCountry() bool

CheckCountry reports whether country restrictions should be enforced.

func EnforceHosts Uses

func EnforceHosts() bool

EnforceHosts reports whether host filtering should be enforced.

func RequireDLSecretKey Uses

func RequireDLSecretKey() bool

RequireDLSecretKey reports whether the download server secret key is expected to already exist, and the download server should panic on missing key instead of creating a new one.

Package env imports 4 packages (graph) and is imported by 2 packages. Updated 2019-10-08. Refresh now. Tools for package owners.