region

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: GPL-3.0 Imports: 2 Imported by: 1 module, 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 region defines the game regions the desktop supports: USA, Europe and Japan. Each has a lower case code used by the library, the artwork and the settings. Every other region is not supported and is ignored wherever regions are shown or chosen.

Index

Constants

View Source
const (
	US = "us" // USA
	EU = "eu" // Europe
	JP = "jp" // Japan
)

The supported regions

Variables

View Source
var All = []string{US, EU, JP}

All lists the supported regions in the order they are shown and preferred

Functions

func Abbreviations

func Abbreviations(codes []string) string

Abbreviations returns region codes upper case and comma separated, such as "US, EU", or "" when there are none

func Code

func Code(name string) string

Code returns the supported region of a metadata region name, such as EU for "Germany", or "" when the region is not supported.

func Codes

func Codes(names []string) []string

Codes returns the supported regions that a list of metadata region names belongs to, each once, in the order the names first reach them. USA, Germany and France give US, EU.

func DisplayName

func DisplayName(code string) string

DisplayName returns the user-facing name of a supported region, such as "Europe" for EU, or "" for any other code.

func Names

func Names(codes []string) string

Names returns the display names of region codes, comma separated, such as "USA, Europe", or "" when there are none

func Supported

func Supported(code string) bool

Supported reports whether code is one of All

Types

This section is empty.

Jump to

Keyboard shortcuts

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