v/GTT
1
0
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:
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 // https://cloud.google.com/translate/docs/languages
var ( var (

View File

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

View File

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

View File

@ -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(),
} }
} }