v/GTT
1
0
mirror of https://github.com/eeeXun/GTT.git synced 2025-05-19 01:00:20 -07:00

style: rename google to googletranslate

This commit is contained in:
eeeXun 2023-01-26 11:56:38 +08:00
parent 72f75e070e
commit 4a15946142
4 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
package google
package googletranslate
// https://cloud.google.com/translate/docs/languages
var (

View File

@ -1,4 +1,4 @@
package google
package googletranslate
import (
"encoding/json"

View File

@ -1,4 +1,4 @@
package google
package googletranslate
import (
"fmt"

View File

@ -2,7 +2,7 @@ package translate
import (
"gtt/internal/lock"
"gtt/internal/translate/google"
"gtt/internal/translate/googletranslate"
)
type Translator interface {
@ -25,8 +25,8 @@ type Translator interface {
PlayTTS(lang string, message string) error
}
func NewGoogleTranslate() *google.GoogleTranslate {
return &google.GoogleTranslate{
func NewGoogleTranslate() *googletranslate.GoogleTranslate {
return &googletranslate.GoogleTranslate{
SoundLock: lock.NewLock(),
}
}