feat: translator
This commit is contained in:
9
translator/google/utils.go
Normal file
9
translator/google/utils.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package google
|
||||
|
||||
import "net/url"
|
||||
|
||||
// javascript "encodeURI()"
|
||||
// so we embed js to our golang program
|
||||
func encodeURI(s string) string {
|
||||
return url.QueryEscape(s)
|
||||
}
|
||||
Reference in New Issue
Block a user