mirror of
https://github.com/OwO-Network/DeepLX.git
synced 2026-12-01 23:07:51 +00:00
Compare commits
3
Commits
1bef182a15
...
v0.9.8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c678e87631 | ||
|
|
ac8ec23790 | ||
|
|
9e8c68fc94 |
@@ -15,7 +15,7 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.22'
|
||||
go-version: '1.23.2'
|
||||
|
||||
- name: Install golint
|
||||
run: go install golang.org/x/lint/golint@latest
|
||||
|
||||
@@ -15,7 +15,7 @@ jobs:
|
||||
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: "1.22"
|
||||
go-version: "1.23.2"
|
||||
|
||||
- run: bash .cross_compile.sh
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
FROM golang:1.23.1 AS builder
|
||||
FROM golang:1.23.2 AS builder
|
||||
WORKDIR /go/src/github.com/OwO-Network/DeepLX
|
||||
COPY . .
|
||||
RUN go get -d -v ./
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module github.com/OwO-Network/DeepLX
|
||||
|
||||
go 1.23.1
|
||||
go 1.23.2
|
||||
|
||||
require (
|
||||
github.com/abadojack/whatlanggo v1.0.1
|
||||
|
||||
@@ -138,7 +138,7 @@ func TranslateByDeepLX(sourceLang string, targetLang string, translateText strin
|
||||
if err != nil {
|
||||
return DeepLXTranslationResult{
|
||||
Code: http.StatusServiceUnavailable,
|
||||
Message: "Unkown error",
|
||||
Message: "Unknown error",
|
||||
}, nil
|
||||
}
|
||||
transport := &http.Transport{
|
||||
|
||||
Reference in New Issue
Block a user