mirror of
https://github.com/eeeXun/GTT.git
synced 2025-05-28 21:40:12 -07:00
add comment
This commit is contained in:
parent
ec81bd3ac2
commit
2a9c52bcb2
@ -87,8 +87,9 @@ func (t *ReversoTranslate) Translate(message string) (translation, definition, p
|
|||||||
return "", "", "", errors.New("Translation not found")
|
return "", "", "", errors.New("Translation not found")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// translation
|
||||||
translation += fmt.Sprintf("%v", data["translation"].([]interface{})[0])
|
translation += fmt.Sprintf("%v", data["translation"].([]interface{})[0])
|
||||||
|
// definition and part of speech
|
||||||
for _, results := range data["contextResults"].(map[string]interface{})["results"].([]interface{}) {
|
for _, results := range data["contextResults"].(map[string]interface{})["results"].([]interface{}) {
|
||||||
results := results.(map[string]interface{})
|
results := results.(map[string]interface{})
|
||||||
// definition
|
// definition
|
||||||
|
Loading…
x
Reference in New Issue
Block a user