feat: translator

This commit is contained in:
Bobo
2025-05-14 20:43:37 +08:00
parent 982e18a991
commit 3b2678de10
13 changed files with 564 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
package google
type Option func(*options)
type options struct {
version string
apiKey string
}
func WithVersion(version string) Option {
return func(o *options) {
o.version = version
}
}
func WithApiKey(key string) Option {
return func(o *options) {
o.apiKey = key
}
}