chore: skip linting web_embed.go

This commit is contained in:
Siyuan Miao 2025-03-12 15:08:24 +01:00
parent 233d059d90
commit b0f54d5e45
3 changed files with 10 additions and 4 deletions

View File

@ -10,3 +10,7 @@ issues:
- path: _test.go
linters:
- errcheck
# embedded files haven't been generated yet when linting, so ignore them for now
- path: web_embed.go
linters:
- staticcheck

4
web.go
View File

@ -1,7 +1,6 @@
package kvm
import (
"embed"
"encoding/json"
"fmt"
"io/fs"
@ -19,9 +18,6 @@ import (
"golang.org/x/crypto/bcrypt"
)
//go:embed all:static
var staticFiles embed.FS
type WebRTCSessionRequest struct {
Sd string `json:"sd"`
OidcGoogle string `json:"OidcGoogle,omitempty"`

6
web_embed.go Normal file
View File

@ -0,0 +1,6 @@
package kvm
import "embed"
//go:embed all:static
var staticFiles embed.FS