Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LowDefinition = Resolution{1366, 768} HighDefinition = Resolution{1920, 1080} UltraHighDefinition = Resolution{3840, 2160} )
View Source
var AllowedRegions = Regions{Canada, China, Germany, Japan, NewZealand, UnitedKingdom, UnitedStates}
View Source
var AllowedResolutions = Resolutions{LowDefinition, HighDefinition, UltraHighDefinition}
View Source
var EnglishRegions = Regions{Canada, NewZealand, UnitedKingdom, UnitedStates}
View Source
var NonEnglishRegions = Regions{China, Germany, Japan}
Functions ¶
This section is empty.
Types ¶
type Day ¶
type Day int
Day is an enum type for relative days. 0 is today, 1 is yesterday, 2 is the day before yesterday, and so on. 7 is the highest value, which is seven days ago.
type Region ¶
type Region int
Region is an enum type for locales.
func ParseLocale ¶
ParseLocale parses a string and returns a Region.
type Resolution ¶
type Resolution struct {
Width, Height int
}
Resolution is a struct for screen resolutions.
func ParseResolution ¶
func ParseResolution(s string) (Resolution, error)
ParseResolution parses a string and returns a Resolution.
func (Resolution) String ¶
func (r Resolution) String() string
String returns the string representation of the Resolution.
type Resolutions ¶
type Resolutions []Resolution
Resolutions is a slice of Resolution.
func (Resolutions) String ¶
func (r Resolutions) String() string
String returns the string representation of the Resolutions.
Click to show internal directories.
Click to hide internal directories.