Migration: go1.19
This commit is contained in:
parent
6648793e40
commit
50105f0559
6 changed files with 4 additions and 21 deletions
2
.github/workflows/linter.yml
vendored
2
.github/workflows/linter.yml
vendored
|
@ -10,7 +10,7 @@ jobs:
|
||||||
uses: actions/setup-go@v3
|
uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
check-latest: true
|
check-latest: true
|
||||||
go-version: '1.18'
|
go-version: '1.19'
|
||||||
|
|
||||||
- name: golangci-lint
|
- name: golangci-lint
|
||||||
uses: golangci/golangci-lint-action@v3
|
uses: golangci/golangci-lint-action@v3
|
||||||
|
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
@ -8,7 +8,7 @@ jobs:
|
||||||
uses: actions/setup-go@v3
|
uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
check-latest: true
|
check-latest: true
|
||||||
go-version: '1.18'
|
go-version: '1.19'
|
||||||
|
|
||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
|
@ -14,4 +14,4 @@ linters-settings:
|
||||||
- prefix(github.com/Dreamacro/clash)
|
- prefix(github.com/Dreamacro/clash)
|
||||||
- default
|
- default
|
||||||
staticcheck:
|
staticcheck:
|
||||||
go: '1.18'
|
go: '1.19'
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
package mime
|
|
||||||
|
|
||||||
import (
|
|
||||||
"mime"
|
|
||||||
)
|
|
||||||
|
|
||||||
var consensusMimes = map[string]string{
|
|
||||||
// rfc4329: text/javascript is obsolete, so we need to overwrite mime's builtin
|
|
||||||
".js": "application/javascript; charset=utf-8",
|
|
||||||
}
|
|
||||||
|
|
||||||
func init() {
|
|
||||||
for ext, typ := range consensusMimes {
|
|
||||||
mime.AddExtensionType(ext, typ)
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -9,7 +9,6 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
C "github.com/Dreamacro/clash/constant"
|
C "github.com/Dreamacro/clash/constant"
|
||||||
_ "github.com/Dreamacro/clash/constant/mime"
|
|
||||||
"github.com/Dreamacro/clash/log"
|
"github.com/Dreamacro/clash/log"
|
||||||
"github.com/Dreamacro/clash/tunnel/statistic"
|
"github.com/Dreamacro/clash/tunnel/statistic"
|
||||||
|
|
||||||
|
|
|
@ -13,4 +13,4 @@ linters-settings:
|
||||||
- prefix(github.com/Dreamacro/clash)
|
- prefix(github.com/Dreamacro/clash)
|
||||||
- default
|
- default
|
||||||
staticcheck:
|
staticcheck:
|
||||||
go: '1.18'
|
go: '1.19'
|
||||||
|
|
Loading…
Reference in a new issue