mirror of
https://github.com/eeeXun/GTT.git
synced 2025-05-19 09:10:42 -07:00
style: rename google to googletranslate
This commit is contained in:
parent
72f75e070e
commit
4a15946142
@ -1,4 +1,4 @@
|
|||||||
package google
|
package googletranslate
|
||||||
|
|
||||||
// https://cloud.google.com/translate/docs/languages
|
// https://cloud.google.com/translate/docs/languages
|
||||||
var (
|
var (
|
@ -1,4 +1,4 @@
|
|||||||
package google
|
package googletranslate
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
@ -1,4 +1,4 @@
|
|||||||
package google
|
package googletranslate
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
@ -2,7 +2,7 @@ package translate
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"gtt/internal/lock"
|
"gtt/internal/lock"
|
||||||
"gtt/internal/translate/google"
|
"gtt/internal/translate/googletranslate"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Translator interface {
|
type Translator interface {
|
||||||
@ -25,8 +25,8 @@ type Translator interface {
|
|||||||
PlayTTS(lang string, message string) error
|
PlayTTS(lang string, message string) error
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGoogleTranslate() *google.GoogleTranslate {
|
func NewGoogleTranslate() *googletranslate.GoogleTranslate {
|
||||||
return &google.GoogleTranslate{
|
return &googletranslate.GoogleTranslate{
|
||||||
SoundLock: lock.NewLock(),
|
SoundLock: lock.NewLock(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user