Documentation ¶
Index ¶
- Constants
- func FormatDistance(locale Locale, meters int64) string
- func GetPhrase(id PhraseID, locale Locale) string
- func Init() error
- type DataFoundSocket
- type DataHelp
- type DataMapLink
- type DataSocketAdded
- type DataSocketsTooFar
- type Locale
- type Message
- type MsgSimple
- type MsgTemplate
- type Phrase
- type PhraseID
- type Template
- type TemplateKey
- type Templater
Constants ¶
View Source
const ( LocaleEn = Locale("en") LocaleRu = Locale("ru") LocaleLv = Locale("lv") LocaleDefault = LocaleEn )
View Source
const ( PhraseEmpty = PhraseID(iota) PhraseUnknownCommand PhraseCancelled PhraseHelpText PhraseHelpVideoCaption PhraseHelpVideoURL PhraseCancelButton PhraseAddSocketIntro PhraseCannotSkipThisStep PhraseNoLocationAttached PhraseWaitingForPlaceName PhraseNoPlaceName PhraseWaitingForPlaceDescription PhraseNoPlaceDescription PhraseWaitingForSocketPhoto PhraseSkipThisStep PhraseNoSocketPhotoAttached PhraseWaitingForOverviewPhoto PhraseNoOverviewPhotoAttached PhraseInternalErrorAddingSocket )
Variables ¶
This section is empty.
Functions ¶
func FormatDistance ¶
Types ¶
type DataFoundSocket ¶
type DataMapLink ¶
type DataMapLink struct {
URL string
}
type DataSocketAdded ¶
type DataSocketAdded struct {
URL string
}
type DataSocketsTooFar ¶
type DataSocketsTooFar struct {
Distance string
}
type MsgTemplate ¶
type MsgTemplate struct {
// contains filtered or unexported fields
}
func NewMsgTemplate ¶
func NewMsgTemplate(templateText string, example Templater) MsgTemplate
func (MsgTemplate) String ¶
func (m MsgTemplate) String() string
type Template ¶
type Template[T any] struct { // contains filtered or unexported fields }
func TemplateFoundSocket ¶
func TemplateFoundSocket() Template[DataFoundSocket]
func TemplateHelp ¶
func TemplateMapLink ¶
func TemplateMapLink() Template[DataMapLink]
func TemplateSocketAdded ¶
func TemplateSocketAdded() Template[DataSocketAdded]
func TemplateSocketsTooFar ¶
func TemplateSocketsTooFar() Template[DataSocketsTooFar]
type TemplateKey ¶
type TemplateKey struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.