Migration: go1.19

This commit is contained in:
Dreamacro 2022-08-07 21:45:50 +08:00
parent 6648793e40
commit 50105f0559
6 changed files with 4 additions and 21 deletions

View File

@ -10,7 +10,7 @@ jobs:
uses: actions/setup-go@v3
with:
check-latest: true
go-version: '1.18'
go-version: '1.19'
- name: golangci-lint
uses: golangci/golangci-lint-action@v3

View File

@ -8,7 +8,7 @@ jobs:
uses: actions/setup-go@v3
with:
check-latest: true
go-version: '1.18'
go-version: '1.19'
- name: Check out code into the Go module directory
uses: actions/checkout@v3

View File

@ -14,4 +14,4 @@ linters-settings:
- prefix(github.com/Dreamacro/clash)
- default
staticcheck:
go: '1.18'
go: '1.19'

View File

@ -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)
}
}

View File

@ -9,7 +9,6 @@ import (
"time"
C "github.com/Dreamacro/clash/constant"
_ "github.com/Dreamacro/clash/constant/mime"
"github.com/Dreamacro/clash/log"
"github.com/Dreamacro/clash/tunnel/statistic"

View File

@ -13,4 +13,4 @@ linters-settings:
- prefix(github.com/Dreamacro/clash)
- default
staticcheck:
go: '1.18'
go: '1.19'