mirror of https://github.com/jetkvm/kvm.git
chore: skip linting web_embed.go
This commit is contained in:
parent
233d059d90
commit
b0f54d5e45
|
@ -10,3 +10,7 @@ issues:
|
||||||
- path: _test.go
|
- path: _test.go
|
||||||
linters:
|
linters:
|
||||||
- errcheck
|
- errcheck
|
||||||
|
# embedded files haven't been generated yet when linting, so ignore them for now
|
||||||
|
- path: web_embed.go
|
||||||
|
linters:
|
||||||
|
- staticcheck
|
||||||
|
|
4
web.go
4
web.go
|
@ -1,7 +1,6 @@
|
||||||
package kvm
|
package kvm
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"embed"
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/fs"
|
"io/fs"
|
||||||
|
@ -19,9 +18,6 @@ import (
|
||||||
"golang.org/x/crypto/bcrypt"
|
"golang.org/x/crypto/bcrypt"
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:embed all:static
|
|
||||||
var staticFiles embed.FS
|
|
||||||
|
|
||||||
type WebRTCSessionRequest struct {
|
type WebRTCSessionRequest struct {
|
||||||
Sd string `json:"sd"`
|
Sd string `json:"sd"`
|
||||||
OidcGoogle string `json:"OidcGoogle,omitempty"`
|
OidcGoogle string `json:"OidcGoogle,omitempty"`
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
package kvm
|
||||||
|
|
||||||
|
import "embed"
|
||||||
|
|
||||||
|
//go:embed all:static
|
||||||
|
var staticFiles embed.FS
|
Loading…
Reference in New Issue