Compare commits

..
3 Commits
Author SHA1 Message Date
Vincent Yang c678e87631 bump to Go 1.23.2 2024-10-07 19:25:36 -04:00
Vincent Young ac8ec23790 Update translate.go 2024-10-03 16:07:38 -04:00
Vincent Young 9e8c68fc94 Revert "Fix typo. (#143)" (#146)
This reverts commit 1bef182a15.
2024-10-03 16:05:53 -04:00
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v4 uses: actions/setup-go@v4
with: with:
go-version: '1.22' go-version: '1.23.2'
- name: Install golint - name: Install golint
run: go install golang.org/x/lint/golint@latest run: go install golang.org/x/lint/golint@latest
+1 -1
View File
@@ -15,7 +15,7 @@ jobs:
- uses: actions/setup-go@v4 - uses: actions/setup-go@v4
with: with:
go-version: "1.22" go-version: "1.23.2"
- run: bash .cross_compile.sh - run: bash .cross_compile.sh
+1 -1
View File
@@ -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 WORKDIR /go/src/github.com/OwO-Network/DeepLX
COPY . . COPY . .
RUN go get -d -v ./ RUN go get -d -v ./
+1 -1
View File
@@ -1,6 +1,6 @@
module github.com/OwO-Network/DeepLX module github.com/OwO-Network/DeepLX
go 1.23.1 go 1.23.2
require ( require (
github.com/abadojack/whatlanggo v1.0.1 github.com/abadojack/whatlanggo v1.0.1
+1 -1
View File
@@ -138,7 +138,7 @@ func TranslateByDeepLX(sourceLang string, targetLang string, translateText strin
if err != nil { if err != nil {
return DeepLXTranslationResult{ return DeepLXTranslationResult{
Code: http.StatusServiceUnavailable, Code: http.StatusServiceUnavailable,
Message: "Unkown error", Message: "Unknown error",
}, nil }, nil
} }
transport := &http.Transport{ transport := &http.Transport{