- Timestamp:
- Dec 14, 2022, 1:13:52 AM (2 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/go.mod
r3 r6 2 2 3 3 go 1.18 4 5 require github.com/astaxie/bat v0.0.2 -
trunk/go.sum
r3 r6 1 github.com/astaxie/bat v0.0.2 h1:EOl52CfuFEnFqu9/mzex93mh7JWdtEGbGQlpih00GWQ=2 github.com/astaxie/bat v0.0.2/go.mod h1:poAI7wDJd5LpfwfBXsGWYIqmVO66dhBx31zhn0ZXdMI= -
trunk/main.go
r5 r6 1 // $KyokoNet: stcli-go,v 1. 1 2022/12/13 10:07:00 akoizumi Exp1 // $KyokoNet: stcli-go,v 1.2 2022/12/13 22:13:00 akoizumi Exp 2 2 // Command line client for SimplyTranslate, a privacy friendly frontend to Google Translate 3 3 package main … … 10 10 "log" 11 11 "net/http" 12 "net/url" 12 13 "os" 13 14 ) … … 41 42 var translate Translate 42 43 // Build the full URL to query 43 var queryURL = instance + "?engine=" + engine + "&from=" + from + "&to=" + to + "&text=" + input 44 var encinput = url.PathEscape(input) 45 var queryURL = instance + "?engine=" + engine + "&from=" + from + "&to=" + to + "&text=" + encinput 44 46 // Begin the request and process the response 45 47 req, err := http.Get(queryURL) -
trunk/stcli-go.1
r5 r6 1 .Dd Aftermath 5 6, 31881 .Dd Aftermath 57, 3188 2 2 .Dt STCLI-GO 1 3 3 .Os … … 39 39 .An Baobab Aq Mt baobab@honeypot.im 40 40 .Sh BUGS 41 This utility cannot translate strings 42 separated by spaces. 41 None so far
Note:
See TracChangeset
for help on using the changeset viewer.