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
|
||||
with:
|
||||
check-latest: true
|
||||
go-version: '1.18'
|
||||
go-version: '1.19'
|
||||
|
||||
- name: golangci-lint
|
||||
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
|
||||
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
|
||||
|
|
|
@ -14,4 +14,4 @@ linters-settings:
|
|||
- prefix(github.com/Dreamacro/clash)
|
||||
- default
|
||||
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"
|
||||
|
||||
C "github.com/Dreamacro/clash/constant"
|
||||
_ "github.com/Dreamacro/clash/constant/mime"
|
||||
"github.com/Dreamacro/clash/log"
|
||||
"github.com/Dreamacro/clash/tunnel/statistic"
|
||||
|
||||
|
|
|
@ -13,4 +13,4 @@ linters-settings:
|
|||
- prefix(github.com/Dreamacro/clash)
|
||||
- default
|
||||
staticcheck:
|
||||
go: '1.18'
|
||||
go: '1.19'
|
||||
|
|
Loading…
Reference in a new issue