website: Index | Files

package env

import ""

Package env provides environment information for the golangorg server running on


Package Files


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 3 packages. Updated 2021-01-25. Refresh now. Tools for package owners.