Documentation ¶
Index ¶
- type Mtr
- func (mtr *Mtr) AssignVariables(options map[string]interface{})
- func (mtr *Mtr) ChTr(source string, target string, input interface{}, service string, ...)
- func (mtr *Mtr) LangMatrix()
- func (mtr *Mtr) LangToSrv(lang string, srv string) string
- func (mtr *Mtr) MakeServices()
- func (mtr *Mtr) PickService(inputServices interface{}, source string, target string) string
- func (mtr *Mtr) SupLangs() interface{}
- func (mtr *Mtr) Tr(source string, target string, input interface{}, service string) interface{}
- type MtrGet
- type MtrPost
- type MtrPostMulti
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mtr ¶
type Mtr struct { In string Arr bool Ep *services.Ep Merge bool Lc *tools.LanguageCode Target string Source string // contains filtered or unexported fields }
func (*Mtr) AssignVariables ¶
func (*Mtr) LangMatrix ¶
func (mtr *Mtr) LangMatrix()
LangMatrix structure: iso639 map -|
srv map -| slc string
----------------------------- iso639 : the language code in mostly iso639 google codes format srv : the name of the service slc : the language code used by the service for the iso639/google code
func (*Mtr) LangToSrv ¶
LangToSrv converts the given (iso639/g) language code to the specific language used by the service
func (*Mtr) MakeServices ¶
func (mtr *Mtr) MakeServices()
func (*Mtr) PickService ¶
type MtrPostMulti ¶
type MtrPostMulti struct {
*Mtr
}
func (*MtrPostMulti) ServeHTTP ¶
func (mtr *MtrPostMulti) ServeHTTP(w http.ResponseWriter, r *http.Request)
querying for multiple languages requires and array of target languages
Click to show internal directories.
Click to hide internal directories.