countries

package
v0.1.81 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package countries is what api knows of a learner's country before the DPIA: its form, and the countries no deployment may take learners from until the DPIA is done — those of the GDPR and of the UK GDPR. Which countries a deployment takes is the operator's list in the database, closed by default.

Index

Constants

This section is empty.

Variables

View Source
var Closed = []string{
	"AT", "BE", "BG", "CY", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GR", "HR", "HU",
	"IE", "IT", "LT", "LU", "LV", "MT", "NL", "PL", "PT", "RO", "SE", "SI", "SK",
	"MQ", "YT", "GP", "GF", "RE", "MF",
	"IS", "LI", "NO",
	"GB",
	"AX", "UK", "EL", "IC", "EA",
}

Closed is the countries of the European Union, of the European Economic Area and the United Kingdom, by ISO 3166-1 alpha-2, with the parts of them that have codes of their own:

Functions

func IsClosed

func IsClosed(country string) bool

IsClosed says whether country may not be opened before the DPIA.

func Valid

func Valid(country string) bool

Valid says whether country has the form of ISO 3166-1 alpha-2: two capital Latin letters. Whether such a country exists the list of the operator says.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL