Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sentence ¶
type Sentence struct { EnglishSentence string `json:"english-sentence,omitempty"` GopherSentence string `json:"gopher-sentence,omitempty"` }
func (*Sentence) SetEnglish ¶
func (*Sentence) SetTranslated ¶
func (*Sentence) Translated ¶
type TranslationPair ¶
type TranslationPair interface { // English get back the English version for the expression English() string // SetEnglish set the English version for the expression SetEnglish(string) // Translated get back the Translated version for the expression Translated() string // SetTranslated set the Translated version for the expression SetTranslated(string) }
TranslationPair hold a pair of words/sentences. The english version an the equivalent in the gophers's language
type Word ¶
type Word struct { EnglishWord string `json:"english-word,omitempty"` GopherWord string `json:"gopher-word,omitempty"` }
func (*Word) SetEnglish ¶
func (*Word) SetTranslated ¶
func (*Word) Translated ¶
Click to show internal directories.
Click to hide internal directories.