urls

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppUrl

type AppUrl struct {
	// contains filtered or unexported fields
}

AppUrl holds the information needed to build the url of a specific app in a specific language and country.

func NewAppUrl

func NewAppUrl(appId string, country locales.Country, language locales.Language) (*AppUrl, error)

NewAppUrl creates a new instance of AppUrl of an app with the provided parameters, if the provided parameters is valid, and return it, or return an error otherwise.

func NewAppUrlFrom

func NewAppUrlFrom(urlStr string) (*AppUrl, error)

NewAppUrlFrom creates a new AppUrl instance from the given url, if it's a valid app url with valid query, and return it, or return an error otherwise.

func (AppUrl) AppId

func (appURL AppUrl) AppId() string

Getters for AppUrl

func (AppUrl) Country

func (appURL AppUrl) Country() locales.Country

func (AppUrl) Language

func (appURL AppUrl) Language() locales.Language

func (AppUrl) String

func (appURL AppUrl) String() string

String returns the app url as a string

Jump to

Keyboard shortcuts

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