Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseTranslation ¶
type BaseTranslation interface {
Key() string
}
type FirebaseRemoteConfig ¶
type FirebaseRemoteConfig struct { Conditions []interface{} `json:"conditions"` Parameters map[string]*FirebaseRemoteConfigParameter `json:"parameters"` Version interface{} `json:"version"` ParameterGroups []interface{} `json:"parameterGroups"` }
A response to/reply from the Firebase Remote Config API.
Parameters is the only important field in this application, so the other fields' types are not defined.
type FirebaseRemoteConfigParameter ¶
type FirebaseRemoteConfigParameter struct { DefaultValue *FirebaseRemoteConfigValue `json:"defaultValue"` ConditionalValues map[string]*FirebaseRemoteConfigValue `json:"conditionalValues"` Description string `json:"description"` ValueType string `json:"valueType"` }
type JsonTranslations ¶
type Translation ¶
func NewTranslation ¶
func NewTranslation(key, en, sv string) Translation
func (Translation) Key ¶
func (t Translation) Key() string
type TranslationGroup ¶
type TranslationGroup struct { // A list of translations or nested groups. Data []BaseTranslation // contains filtered or unexported fields }
A group of translations or nested groups.
func NewTranslationGroup ¶
func NewTranslationGroup(key string, data []BaseTranslation) TranslationGroup
func (TranslationGroup) Key ¶
func (t TranslationGroup) Key() string
Click to show internal directories.
Click to hide internal directories.