digits after '\x', but got %q insteadruntime.AddCleanup: ptr is equal to arg, cleanup will never runinternal/sync.HashTrieMap: ran out of hash bits while iteratinginternal/sync.HashTrieMap: ran out of hash bits while inserting may be in the same tiny block as cleanup or cleanup argument malformed GOMEMLIMIT; see `go doc runtime/debug.SetMemoryLimit`unmarshal failed to match one of [SemanticTokensFullDelta bool]unmarshal failed to match one of [InlineCompletionOptions bool]type %T not one of [AnnotatedTextEdit SnippetTextEdit TextEdit]The object has %v references. Their locations are listed below http2: push would exceed peer's SETTINGS_MAX_CONCURRENT_STREAMSrequest declared a Content-Length of %d but only wrote %d bytes

HTTP Error 431

Request Header Field(s) Too Large

internal error: exactly one of res or err should be set; nil=%vhttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/assignhttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/atomichttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/defershttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/inlinepermit inlinings that require a 'var params = args' declarationhttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/printfhttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/shadowUse plain channel send or receive instead of single-case select(SliceExpr x@(Object _) low (CallExpr (Builtin "len") [x]) nil)Use a type conversion instead of manually copying struct fields\'Printf\' with dynamic first argument and no further argumentscalling %s with n == 0 will return no results, did you mean -1?this call to %s returns the user's %s directory, for example %sunknown field %s in struct literal of type %s, but does have %sinvalid operation: shifted operand %s (type %s) must be integerConfig.Importer.ImportFrom(%s, %s, 0) returned nil but no errorgot %s, want variadic parameter of unnamed slice or string typefound duplicate PkgPaths while reading export data manifest: %vinternal error: go list gave a %q error with empty import stackelementNoneelementScriptelementStyleelementTextareaelementTitlego package net: GODEBUG setting forcing use of the Go resolver Stack traces that led to blocking on synchronization primitivescan't rename package: LSP client does not support file renamingcan't rename package: missing module information for package %qrenaming this func %q to %q would make it a package initializertls: unexpected encrypted client hello extension in serverHellotls: unexpected switch in encrypted client hello extension typecannot inline call to %s because body refers to non-exported %sfunc(b []byte, val any, params string) (rest []byte, err error)func(ctx context.Context, level Level, msg string, args ...any)func[M ~map[K]V, K comparable, V any](m M, del func(K, V) bool)func(pattern string, r io.RuneReader) (matched bool, err error)func(path string, attr string, dest []byte) (sz int, err error)func(pid int, addr uintptr, data []byte) (count int, err error)func(rfd int, wfd int, len int, flags int) (n int64, err error)no source files provided for package. cannot initialize globalsconvert %s -> %s: at least one type set must contain basic typecrypto/ecdh: use of X25519 is not allowed in FIPS 140-only modecryptobyte: BuilderContinuation reallocated a fixed-size buffercrypto/ecdh: internal error: public key is the identity elementexpected four hexadecimal digits after '\u', but got %q insteadruntime.SetFinalizer: first argument was allocated into an arenaattempted to trace stack of a goroutine this thread does not own0000000000000000000000000000000000000000000000000000000000000000 unmarshal failed to match one of [NotebookDocumentFilter string]type %T not one of [InlineCompletionList []InlineCompletionItem]unmarshal failed to match one of [DocumentHighlightOptions bool]unmarshal failed to match one of [Declaration []DeclarationLink]reflect.StructOf: struct size would exceed virtual address spacejson: invalid number literal, trying to unmarshal %q into NumberThe `%s` directory is an ad-hoc Go package, not in a Go module. http: request method or response status code does not allow bodyhttp2: too many control frames in send queue, closing connection Content-Type: text/plain; charset=utf-8 Connection: close https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/appendshttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/asmdeclcheck for non-64-bits-aligned arguments to sync/atomic functionshttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/cgocallreport assembly that clobbers the frame pointer before saving itthe %s function is not used on all paths (possible context leak)https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/nilfunchttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/nilnessshould omit comparison to bool constant, can be simplified to %sIn many cases, assigning to the blank identifier is unnecessary. var x T1 y := T2{ Field1: x.Field1, Field2: x.Field2, }%s has been deprecated since %s because it shouldn't be used: %sdecoding array or slice: length exceeds input size (%d elements)package requires newer Go version %v (application built with %v)cannot refer to unexported field %s in struct literal of type %sinvalid operation: pointers of %s must have identical base typesimplementation of offsetsof returned the wrong number of offsets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . failed to split patterns into chunks, negative safe argMax valuego package net: GODEBUG setting forcing use of the cgo resolver cannot rename package: missing module information for package %qABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_tls: certificate private key does not implement crypto.Decrypterhttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/inspectcannot inline: type argument #%d (type parameter %s) is shadowedfunc(network string, addr string, config *Config) (*Conn, error)func(root Node, stack []Node, f func(n Node, stack []Node) bool)func(dst Writer, src Reader, n int64) (written int64, err error)func(method string, target string, body io.Reader) *http.Requestfunc(ctx context.Context, f func(key string, value string) bool)func(epfd int, events []EpollEvent, msec int) (n int, err error)func(dirfd int, path string, mode uint32, flags int) (err error)invoke on %s (%s) which is not an interface type (or type param)operand %d of %s is an instruction (%s) that belongs to no blockParam %s at index %d has wrong type (%s, versus %s in Signature)first argument of (Binding name node) must be string, but got %sexport data desync: package %q, section %v, index %v, offset %v Use '-scan symbol' for more fine grained vulnerability detectionflate: invalid compression level %d: want value in range [-2, 9]5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c2964fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5toml: cannot decode to a map with non-string key type (%s in %q)expected eight hexadecimal digits after '\U', but got %q insteadEB1DF448F44BF4B332F52813A3B450D441CC2485F001454E92101B1D2F1950C3EB1DF448F44BF4BAEE4DFA9851CA56A91145E83E99C59CF911CB8E80DAF12FC3EB1DF448F44BF4363CB9CE9D68047D31F28D325D5CA5873F5D80CAF6D6151BC3user arena chunk size is not a multiple of the physical page sizeruntime: function marked with #cgo nocallback called back into Goruntime.SetFinalizer: pointer not at beginning of allocated blockunmarshal failed to match one of [DocumentFormattingOptions bool]reflect: StructOf does not support methods of embedded interfaceshttp: response.WriteHeader on hijacked connection from %s (%s:%d)net/http: Transport.DialTLS or DialTLSContext returned (nil, nil)%#v returned a non-nil result with a non-nil error for %s: %v %#vhttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/buildtaghttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/copylockhttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/errorsashttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/hostport switch x { case 1, 2: ... case 3: ... default: ... }should convert %s (type %s) to %s instead of using struct literalThe empty for loop (\"for {}\") spins and can block the schedulerinvalid argument: arguments have type %s, expected floating-pointinvalid method expression %s.%s (needs pointer receiver (*%s).%s)type %s has no field or method %s, but does have unexported %s %sgo/build: Dir is non-empty, so relative srcDir is not allowed: %vcannot import %q (%v), export data is newer version - update tool"add test for func" does not support files containing dot importselicit schema property %q has maxLength %d less than minLength %dtls: internal error: attempted to read record with QUIC transporttls: server selected an invalid version after a HelloRetryRequesttls: session supported extended_master_secret but client does nottls: second client hello missing encrypted client hello extensionhttps://pkg.go.dev/golang.org/x/tools/internal/analysis/typeindexcannot inline call to %s (declared using %s) into a file using %shttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/ctrlflowfunc(parent Context, timeout time.Duration) (Context, CancelFunc)func(ctx context.Context, level Level, msg string, attrs ...Attr)func(method string, url string, body io.Reader) (*Request, error)https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/buildssaunexpected expression-could not match index list to instantiationphi node '%s' has a different type (%s) for edge #%d from %s (%s)function has %d parameters in signature but has %d after buildingAnnotates return values that will never be nil (typed or untyped)Use '-scan symbol' for more fine grained vulnerability detection.cannot resolve remote schemas: no loader passed to Schema.Resolvex509: policy constraints inhibitPolicyMapping field overflows intx509: inner and outer signature algorithm identifiers don't matchx509: issuer name does not match subject from issuing certificatecrypto/des: use of TripleDES is not allowed in FIPS 140-only modecryptobyte: high-tag number identifier octets not supported: 0x%xcryptobyte: pending child length %d exceeds %d-byte length prefixnistec: internal error: p224Table called with out-of-bounds valuenistec: internal error: p384Table called with out-of-bounds valuenistec: internal error: p521Table called with out-of-bounds valuelength of dynamic section is not a multiple of dynamic entry sizesync: WaitGroup.Add called from inside and outside synctest bubbleruntime: unexpected error while checking standard file descriptor casGToWaitingForSuspendG with non-isWaitingForSuspendG wait reasonruntime: ReadTrace called from multiple goroutines simultaneously %s requires buildir (perhaps indirectly) yet is enabled by defaultreflect: indirection through nil pointer to embedded struct field metadataChanges: unparsable file %v (old error: %v, new error: %v)sender tried to send more than declared Content-Length of %d byteshttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/compositehttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/directivehttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/sortslicehttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/structtagstruct field tag %#q not compatible with reflect.StructTag.Get: %shttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/unmarshalhttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/unsafeptrhttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/waitgroupshould use 'return %s' instead of 'if %s { return %s }; return %s' if strings.HasPrefix(str, prefix) { str = str[len(prefix):] }should use fmt.Errorf(...) instead of errors.New(fmt.Sprintf(...))should use sort.Ints(...) instead of sort.Sort(sort.IntSlice(...))this result of append is never used, except maybe in other appendsComparing a value against NaN even though no value is equal to NaNm[string(key)] would be more efficient than k := string(key); m[k]defers in this range loop won't run unless the channel gets closedimpossible type switch case: %s %s cannot have dynamic type %s %scannot handle more than %d union terms (implementation limitation) would make the %s method of %s invoked via interface %s ambiguous(?:[\p{L}\p{M}\p{N}](?:[\p{L}\p{M}\p{N}\-]*[\p{L}\p{M}\p{N}])?\.)+tls: certificate private key (%T) does not implement crypto.Signerclient doesn't support ECDHE, can only use legacy RSA key exchangetls: server sent an unexpected quic_transport_parameters extensiontls: client sent an unexpected quic_transport_parameters extensionfunc(random io.Reader, pub *PublicKey, msg []byte) ([]byte, error)func(random io.Reader, nprimes int, bits int) (*PrivateKey, error)func(certPEMBlock []byte, keyPEMBlock []byte) (Certificate, error)func(w io.Writer, fset *token.FileSet, x any, f FieldFilter) errorfunc(pos token.Pos, pkg *Package, name string, typ Type) *TypeNamefunc(network string, address string, path string) (*Client, error)func(name string, argv []string, attr *ProcAttr) (*Process, error)func(path string, attr string, data []byte, flags int) (err error)adding method %s.%s would conflict with (or shadow) existing fieldjsonrpc2: processResult called when incoming count is already zerox509: policy constraints requireExplicitPolicy field overflows intx509: certificate is not valid for any names, but wanted to match x509: requested SignatureAlgorithm does not match private key typeexpected end of table array name delimiter ']', but got %q insteadunmarshal failed to match one of [EditRangeWithInsertReplace Range]type %T not one of [MonikerOptions MonikerRegistrationOptions bool]command-line-arguments package has neither GoFiles nor IgnoredFiles[gotelemetry local](https://golang.org/x/telemetry/cmd/gotelemetry)https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/lostcancelmisuse of unbuffered os.Signal channel as argument to signal.Notifyhttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/stdmethodshttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/stdversionhttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/timeformatdeclarations following go:embed directives must not specify a valuehttps://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/yieldUse \'sort.Ints(x)\', \'sort.Float64s(x)\', and \'sort.Strings(x)\'(BinaryExpr (UnaryExpr "&" _) (Or "==" "!=") (Builtin "nil"))The documentation of an exported type should start with type's namegotypealias mutated during type checking, gotypesalias=%s, inuse=%dPlease report what the imports section of your go file looked like.^([1-9][0-9]*)\.(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))?([a-z]+[0-9]+)?$SetRequire called with conflicting versions for path %s (%s and %s)"extract to new file" does not support files containing dot importscan't rename package: package path %q is the same as module path %qinvalid package path %q; cannot move package across module boundary{{if (eq (.TypeName .Type) "[]byte") -}} string({{.X}}) {{- end}}{{if (eq (.TypeName .Type) "string") -}} []byte({{.X}}) {{- end}}tls: server sent certificate containing RSA key larger than %d bitstls: client sent certificate containing RSA key larger than %d bitsfunc(rand io.Reader, priv *PrivateKey, hash []byte) ([]byte, error)func(name string, value time.Duration, usage string) *time.Durationfunc(path string, srcDir string, mode ImportMode) (*Package, error)func(dst Writer, src Reader, buf []byte) (written int64, err error)func[M1 ~map[K]V, M2 ~map[K]V, K comparable, V any](dst M1, src M2)func[Map ~map[K]V, K comparable, V any](m Map, seq iter.Seq2[K, V])func(network string, laddr *IPAddr, raddr *IPAddr) (*IPConn, error)func(ctx context.Context, labels LabelSet, f func(context.Context))func(dst []byte, f float64, fmt byte, prec int, bitSize int) []bytefunc(addr *unsafe.Pointer, new unsafe.Pointer) (old unsafe.Pointer)func(fd int, p []byte, flags int) (n int, from Sockaddr, err error)(Or (BasicLit "INT" _) (UnaryExpr (Or "+" "-") (IntegerLiteral _)))method %s.%s already exists but has the wrong type: got %s, want %sjsonrpc2: updateInFlight transitioned to non-idle when already donecrypto/cipher: invalid buffer overlap of output and additional dataincompatible types: TOML value has type %s; destination has type %sAllThreadsSyscall6 results differ between threads; runtime corruptedunmarshal failed to match one of [PRangeESemanticTokensOptions bool]type %T not one of [DiagnosticOptions DiagnosticRegistrationOptions]reflect: reflect.Value.UnsafePointer on an invalid notinheap pointerpadding bytes must all be zeros unless AllowIllegalWrites is enabledhttp2: Transport conn %p received error from processing frame %v: %vhttp2: Transport received unsolicited DATA frame; closing connectionhttp: message cannot contain multiple Content-Length headers; got %qhttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/atomicalignhttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/ifaceasserthttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/loopclosurehttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/sigchanyzer%s has malformed name: first letter after '%s' must not be lowercasehttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/unreachablehttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/unusedwrite switch x { case 1, 2, 3: ... case 4: ... default: ... }Some uses of \'math.Pow\' can be simplified to basic multiplication.Use \'fmt.Fprintf(x, ...)\' instead of \'x.Write(fmt.Sprintf(...))\'should omit second index in slice, s[a:len(s)] is identical to s[a:]the argument is already a string, there's no need to use fmt.Sprintfdecoding int array or slice: length exceeds input size (%d elements)cannot assign to %s (neither addressable nor a map index expression)internal error: go list gives conflicting information for package %v{"ImportPath": %q,"Incomplete": true,"Error": {"Pos": "","Err": %q}}{{if and (eq .Kind "slice") .Obj -}} {{.X}}[len({{.X}})-1] {{- end}}embedded IPv4 address must replace the final 2 fields of the addressbig: invalid 2nd argument to Int.Jacobi: need odd integer but got %stls: internal error: sending non-handshake message to QUIC transportcrypto/hmac: hash generation function does not produce unique valuesfunc(data []byte, atEOF bool) (advance int, token []byte, err error)func(s []byte, sep []byte) (before []byte, after []byte, found bool)func(parent Context, d time.Time, cause error) (Context, CancelFunc)func(params *Parameters, rand io.Reader, sizes ParameterSizes) errorfunc(pos token.Pos, pkg *Package, name string, sig *Signature) *Funcfunc(x uint32, y uint32, carry uint32) (sum uint32, carryOut uint32)func(x uint64, y uint64, carry uint64) (sum uint64, carryOut uint64)func(s string, sep string) (before string, after string, found bool)func(t reflect.Type, rand *rand.Rand) (value reflect.Value, ok bool) [stack trace unavailable; recompile package %q with -d=syncframes] 2695994666715063979466701508701963067355791626002630814351006629888126959946667150639794667015087019625940457807714424391721682722368061crypto/rsa: only crypto/rand.Reader is allowed in FIPS 140-only moderuntime.Pinner: found leaking pinned pointer; forgot to call Unpin()?reflect: embedded interface with unexported method(s) not implementedfailed to stat path, skipping event as its type (file/dir) is unknownThe `%s` directory is loaded using a the legacy GOPATH build system. The `%s` directory uses Go modules, with the following main modules: http2: Transport closing idle conn %p (forSingleUse=%v, maxStream=%v)%s matches more methods than %s, but has a more specific path pattern%s matches fewer methods than %s, but has a more general path patternhttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/framepointerhttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/httpresponsehttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/unusedresult(AssignStmt x@(Object _) ":=" assign@(Builtin b@(Or "true" "false")))should use raw string (`...`) with %s to avoid having to escape twiceidentical expressions on the left and right side of the '%s' operatordue to the file's build constraints, runtime.GOOS will never equal %qMissing an optimization opportunity when indexing maps by byte slices(CallExpr (SelectorExpr (Ident "strings") (Ident "EqualFold")) [a b])methods on the same type should have the same receiver name (seen %s)decoding bool array or slice: length exceeds input size (%d elements)decoding int8 array or slice: length exceeds input size (%d elements)decoding uint array or slice: length exceeds input size (%d elements)expected %s, found %s (missing parentheses around composite literal?)invalid toolchain version '%s': must match format go1.23.0 or defaultinlining increased calls %d->%d, possible recursive call? content: %stoo many hex fields to fit an embedded IPv4 at the end of the addresstls: peer doesn't support the certificate custom signature algorithmstls: handshake message of length %d bytes exceeds maximum of %d bytestls: client certificate contains an unsupported public key of type %Tfunc(ticket []byte, state *SessionState) (*ClientSessionState, error)func(addr string, a Auth, from string, to []string, msg []byte) errorfunc[S ~[]E, E, T any](x S, target T, cmp func(E, T) int) (int, bool)func(dirfd int, path string, uid int, gid int, flags int) (err error)func(fd int, pathname string, mask uint32) (watchdesc int, err error)go/printer: source filename contains unexpected newline character: %qin %s: cannot convert term %s (%s [within %s]) to type %s [within %s]crypto/ecdh: only crypto/rand.Reader is allowed in FIPS 140-only modeedwards25519: internal error: setShortBytes called with a long stringPlease file a new issue at golang.org/issue/new using this template: sync/atomic: compare and swap of inconsistently typed value into Valuetype %T not one of [NotebookCellTextDocumentFilter TextDocumentFilter]unmarshal failed to match one of [DocumentRangeFormattingOptions bool]To fix this problem, you can add this module to your go.work file (%s)bytes.Buffer: UnreadByte: previous operation was not a successful readVulnerability check for pattern %q complete. Found %d vulnerabilities.got %s for stream %d; expected CONTINUATION following %s for stream %dhttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/modernize#anyhttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/stringintconvhttps://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/maprangesleeping for %d nanoseconds is probably a bug; be explicit if it isn'tUsing an invalid host:port pair with a \'net.Listen\'-related functionthe lhs of the comparison is the %s return value of this function call(IfStmt _ cond@(BinaryExpr lhs op@(Or "==" "!=") (Builtin "nil")) _ _)%s %q is expected to have even number of elements, but has %d elementsTrying to marshal a struct with no public fields nor custom marshalingdecoding int16 array or slice: length exceeds input size (%d elements)decoding int32 array or slice: length exceeds input size (%d elements)decoding int64 array or slice: length exceeds input size (%d elements){{if (eq .Kind "slice" "map" "array" "chan") -}} len({{.X}}) {{- end}}elicit schema property %q has invalid enumNames type, must be an arrayToNearestEvenToNearestAwayToZeroAwayFromZeroToNegativeInfToPositiveInfcan't inline function %v as its body refers to inaccessible package %qfunc(p *time.Duration, name string, value time.Duration, usage string)func(V Type, T *Interface, static bool) (method *Func, wrongType bool)func[K, V any](seq Seq2[K, V]) (next func() (K, V, bool), stop func())func(v string) (mediatype string, params map[string]string, err error)func(network string, laddr *TCPAddr, raddr *TCPAddr) (*TCPConn, error)func(network string, laddr *UDPAddr, raddr *UDPAddr) (*UDPConn, error)func(network string, ifi *Interface, gaddr *UDPAddr) (*UDPConn, error)func(ctx context.Context, category string, format string, args ...any)func(argv0 string, argv []string, attr *ProcAttr) (pid int, err error)func(fd int, p []byte, oob []byte, to Sockaddr, flags int) (err error)Finder.Find: one of info.{Defs,Uses,Selections.Types} is not populatedFor details, see https://pkg.go.dev/golang.org/x/vuln/cmd/govulncheck.crypto/ecdsa: only crypto/rand.Reader is allowed in FIPS 140-only modecrypto/ed25519: use of Ed25519ctx is not allowed in FIPS 140-only modex509: PKCS#8 wrapping contained private key with unknown algorithm: %vx509: certificate relies on legacy Common Name field, use SANs insteadexpected a comma or an inline table terminator '}', but got %s insteadconsider using cmpopts.EquateComparable to compare comparable Go typesrange function recovered a loop body panic and did not resume panickingtoo many concurrent operations on a single file or socket (max 1048575)exec: command with a non-nil Cancel was not created with CommandContextjson: invalid use of ,string struct tag, trying to unmarshal %q into %vinternal error: attempt to send frame on a half-closed-local stream: %vwhether to check if t.Run subtest is terminated correctly; experimentalmismatched type in call to (*testing.F).Add: %v, fuzz target expects %vhttps://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/nonewvarsFor infinite loops, using \'for { ... }\' is the most idiomatic choice.due to the file's build constraints, runtime.GOARCH will never equal %qdecoding string array or slice: length exceeds input size (%d elements)decoding uint16 array or slice: length exceeds input size (%d elements)decoding uint32 array or slice: length exceeds input size (%d elements)decoding uint64 array or slice: length exceeds input size (%d elements)invalid operation: cannot use type assertion on type parameter value %simplicit assignment to unexported field %s in struct literal of type %sinvalid use of type alias %s in recursive type (see go.dev/issue/50729)replacement module must match format 'path version', not 'path@version'cannot apply %q to %s (got %T, want pointer, slice, array, chan or map)tls: peer doesn't support any of the certificate's signature algorithmsdynamic table size update MUST occur at the beginning of a header blockfunc(pub *PublicKey, hash crypto.Hash, hashed []byte, sig []byte) errorfunc(dst *bytes.Buffer, src []byte, prefix string, indent string) errorfunc(x uint32, y uint32, borrow uint32) (diff uint32, borrowOut uint32)func(x uint64, y uint64, borrow uint64) (diff uint64, borrowOut uint64)invalid GOFIPS140: must be off, latest, inprocess, certified, or vX.Y.Zcrypto/ecdsa: use of custom curves is not allowed in FIPS 140-only modex509: issuer has name constraints but leaf doesn't have a SAN extensionx/tools/go/analysis/passes/ctrlflow is not linked into this applicationmvdan.cc/gofumpt/internal/govendor/go/printer: unsupported node type %Truntime.Goexit called in a thread that was not created by the Go runtimeerrgroup: modify limit while %v goroutines in the group are still activereflect: embedded type with methods not implemented for non-pointer typehttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/deepequalerrorshttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/modernize#bloopuser-defined %s function is equivalent to built-in %s and can be removedmethod Unwrap() should have signature Unwrap() error or Unwrap() []errormismatched types in call to (*testing.F).Add: %v, fuzz target expects %vhttps://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/deprecateddeclarations following go:embed directives must define a single variablehttps://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/unusedfunc(IfStmt nil cond [(ReturnStmt [ret@(Builtin (Or "true" "false"))])] nil)should use sort.Strings(...) instead of sort.Sort(sort.StringSlice(...))(BinaryExpr duration "*" (SelectorExpr (Ident "time") (Ident "Second")))Certain bitwise operations, such as \'x ^ 0\', do not do anything useful(*net/url.URL).Query returns a copy, modifying it doesn't change the URLcalling %s in a loop has poor performance, consider using regexp.Compilestruct type '%s' doesn't have any exported fields, nor custom marshalingreceiver name should not be an underscore, omit the name if it is unuseddecoding float32 array or slice: length exceeds input size (%d elements)decoding float64 array or slice: length exceeds input size (%d elements)decoding uintptr array or slice: length exceeds input size (%d elements) can only be decoded from remote interface type; received concrete type invalid copy: arguments %s and %s have different element types %s and %sfunc must be func(yield func(...) bool): yield func does not return boolelicit schema property %q has invalid minLength %d, must be non-negativeelicit schema property %q has invalid maxLength %d, must be non-negativeJSON-RPC batching is not supported in %s and later (request version: %s)client doesn't support any cipher suites compatible with the certificatetls: server's certificate contains an unsupported type of public key: %Ttls: second client hello encrypted client hello extension does not matchtls: certificate private key of type %T does not implement crypto.Signerfunc(network string, laddr string, config *Config) (net.Listener, error)func(dst []byte, src []byte, flush bool) (ndst int, nsrc int, err error)func(fset *token.FileSet, compiler string, lookup Lookup) types.Importerfunc(parent *Scope, pos token.Pos, end token.Pos, comment string) *Scopefunc(recv *Var, params *Tuple, results *Tuple, variadic bool) *Signaturefunc(dirfd int, path string, flags int, mode uint32) (fd int, err error)%s.Referrers()[%d] = %s is not an instruction belonging to this functioninvalid finding: if Frame.Version (%s) is set, Frame.Module must also beinvalid finding: if Frame.Package (%s) is set, Frame.Module must also becrypto/rsa: use of multi-prime keys is not allowed in FIPS 140-only modecrypto/fips140: FIPS 140-3 mode enabled, but integrity check didn't passServer requested that client editor open %q (takeFocus=%t, selection=%+v)To fix this problem, you can add a go.work file that uses this directory.https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/modernize#forvarhttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/modernize#minmaxhttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/testinggoroutine%s has type parameters: it will not be run by go test as a %sXXX functionhttps://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/fillreturns(ForStmt nil nil nil if@(IfStmt nil cond (BranchStmt "BREAK" nil) nil):_)(CallExpr (Symbol "(time.Time).Sub") [(CallExpr (Symbol "time.Now") [])])(CallExpr (Symbol "errors.New") [(CallExpr (Symbol "fmt.Sprintf") args)])io.Writer.Write must not modify the provided buffer, not even temporarilydeferring %s right after having locked already; did you mean to defer %s?ineffective break statement. Did you mean to break out of the outer loop?Comparing \'runtime.GOOS\' or \'runtime.GOARCH\' against impossible valueunstable iexport format version %d, just rebuild compiler and std librarygolang.org/x/tools/go/packages: unexpected new packages during load of %sgo package net: GODEBUG=netdns contains an invalid dns mode, ignoring it can't change signatures for packages with parse or type errors: (e.g. %s)can't move package: package name %q does not match directory base name %qtls: received unexpected handshake message of type %T when waiting for %Ttls: internal error: handshake returned an error but is marked successfultls: found a certificate rather than a key in the PEM for the private keyin %s, implicit reference to unexported field .%s cannot be made explicitparam %q (offset %d): adding explicit %s -> %s conversion around argumentfunc[H hash.Hash](h func() H, secret []byte, salt []byte) ([]byte, error)func(fset *token.FileSet, node Node, comments []*CommentGroup) CommentMapfunc(ctxt *Context, orig Type, targs []Type, validate bool) (Type, error)func(network string, address string, timeout time.Duration) (Conn, error)func(network string, laddr *UnixAddr, raddr *UnixAddr) (*UnixConn, error)func(addr string, certFile string, keyFile string, handler Handler) errorfunc(identity string, username string, password string, host string) Authinternal error: could not find field %s in type %t when comparing with %Thttps://pkg.go.dev/golang.org/x/tools/internal/analysisinternal/typeindexruntime: cannot set cpu profile rate until previous profile has finished. skip adding the already added folder %q - its view has been created beforebytes.Buffer: UnreadRune: previous operation was not a successful ReadRunecrypto/rand: failed to read random data (see https://go.dev/issue/66821): malformed response from server: malformed non-numeric status pseudo headernet/http: server replied with more than declared Content-Length; truncatedhttps://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/unusedparamsUse \'strings.ReplaceAll\' instead of \'strings.Replace\' with \'n == -1\'should use sort.Float64s(...) instead of sort.Sort(sort.Float64Slice(...))It is not possible to use \'(*time.Timer).Reset\''s return value correctlythe lhs of the comparison gets its value from here and has a concrete typeUsing \'regexp.Match\' or related in a loop, should use \'regexp.Compile\'decoding complex64 array or slice: length exceeds input size (%d elements)unknown field %s in struct literal of type %s, but does have unexported %sPass.ReadFile: %s is not among OtherFiles, IgnoredFiles, or names of Filesinternal error: getPackages returned wrong name %s for package %q, want %sreplacement directory appears to be Windows path (on a non-windows system)cannot add test of unexported function %s to external test package %s_testcannot add external test for method %s.%s as receiver type is not exportedAddAttrs unsafely called on copy of Record made without using Record.Cloneelicit schema property %q has invalid default value, must be a boolean: %vtls: certificate RSA key size too small for supported signature algorithmsfunc(publicKey PublicKey, message []byte, sig []byte, opts *Options) errorfunc(conf *Config, fset *token.FileSet, pkg *Package, info *Info) *Checkerfunc(pos token.Pos, pkg *Package, name string, imported *Package) *PkgNamefunc(dst Image, r image.Rectangle, src image.Image, sp image.Point, op Op)invalid finding: if Frame.Function (%s) is set, Frame.Package must also be// %s implements [%s]. %sfunc (%s%s%s%s) %s%s { panic("unimplemented") } crypto/rsa: use of keys with odd size is not allowed in FIPS 140-only modegcm: internal error: using generic implementation despite hardware supportwarning: failed to extract build system specification GOOS: %s GOARCH: %s optional header size(%d) is less minimum size (%d) of PE32 optional headertype %T not one of [DeclarationOptions DeclarationRegistrationOptions bool]type %T not one of [InlineValueOptions InlineValueRegistrationOptions bool]internal error: could not locate file for primary type checker error %v: %vinternal error: cannot run go work command: required go.work file not foundUnsolicited response received on idle HTTP channel starting with %q; err=%vhttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/modernize#mapsloophttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/modernize#omitzerohttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/modernize#rangeint%s arg %q should be a string or a slog.Attr (possible missing key or value)https://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/infertypeargshttps://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/recursiveiterhttps://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/simplifyrangehttps://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/simplifysliceBreak statement with no effect. Did you mean to break out of an outer loop?\'else\' branch of a type assertion is probably not reading the right valuedecoding complex128 array or slice: length exceeds input size (%d elements)func must be func(yield func(...) bool): yield func has too many parameterstls: internal error: attempted to read record with pending application datatls: client sent encrypted_client_hello extension with unsupported versionstls: client sent encrypted_client_hello extension but did not offer TLS 1.3func(random io.Reader, priv *PrivateKey, ciphertext []byte) ([]byte, error)func(w io.Writer, text string, prefix string, codePrefix string, width int)func(T Type, addressable bool, pkg *Package, name string) (Selection, bool)Mach-O type for architecture #%d (type=%#x) does not match first (type=%#x)unmarshal failed to match one of [ClientSemanticTokensRequestFullDelta bool]type %T not one of [Lit_ClientSemanticTokensRequestOptions_range_Item1 bool]HTTP/1.0 400 Bad Request Client sent an HTTP request to an HTTPS server. https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/modernize#plusbuildhttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/modernize#waitgroupconversion from %s to %s yields a string of one rune, not a string of digitshttps://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/embeddirectivehttps://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/noresultvalueshttps://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/unusedvariable if x == 1 || x == 2 { ... } else if x == 3 { ... } else { ... }calling net/http.CanonicalHeaderKey on the 'key' argument of %s is redundant(BinaryExpr duration "*" (SelectorExpr (Ident "time") (Ident "Nanosecond")))\'(*net/url.URL).Query\' returns a copy, modifying it doesn't change the URLThe finalizer references the finalized object, preventing garbage collection(CallExpr (Symbol "io.WriteString") [_ (CallExpr (Builtin "string") [arg])])detected hanging go command (golang/go#54461); waited %s command:%s pid:%dtls: failed to send closeNotify alert (but connection was closed anyway): %wtls: no cipher suite supported by both client and server; client offered: %xtls: server certificate contains incorrect key type for selected ciphersuitefunc(pos token.Pos, pkg *Package, name string, typ Type, embedded bool) *Varfunc(l net.Listener, handler Handler, certFile string, keyFile string) errorfunc[S1 ~[]E1, S2 ~[]E2, E1, E2 any](s1 S1, s2 S2, cmp func(E1, E2) int) intfunc(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)func(outfd int, infd int, offset *int64, count int) (written int, err error)cannot create an alias with type parameters when gotypesalias is not enabledcrypto/rsa: use of even public exponent is not allowed in FIPS 140-only modeoptional header size(%d) is less minimum size (%d) for PE32+ optional headertype %T not one of [FoldingRangeOptions FoldingRangeRegistrationOptions bool]unmarshal failed to match one of [AnnotatedTextEdit SnippetTextEdit TextEdit]%s.Analyzers includes %s but config mapping does not; settings audit requiredMapIter.Next called on an iterator that does not have an associated map ValueThis file may be excluded due to its GOOS/GOARCH, or other build constraints.asynchronous command gopls.run_govulncheck does not enable progress reportinginvalid Body.Read call. After hijacked, the original Request must not be usedhttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/modernize#fmtappendfhttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/modernize#slicessorthttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/modernize#stringsseqshould use a simple channel send/receive instead of select with a single case (TypeSwitchStmt nil expr@(TypeAssertExpr ident@(Ident _) _) body)Inefficient string comparison with \'strings.ToLower\' or \'strings.ToUpper\'invalid argument: mismatched types %s (previous argument) and %s (type of %s)+-.,/0123456789=ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz:$@%! ~^inferExpectedResultTypes given callNodeIndex: %v which is not a ast.CallExpr crypto/tls: ExportKeyingMaterial is unavailable when renegotiation is enabledfunc(random io.Reader, priv *PrivateKey, ciphertext []byte, key []byte) errorfunc(pctx context.Context, taskType string) (ctx context.Context, task *Task)func[S1 ~[]E1, S2 ~[]E2, E1, E2 any](s1 S1, s2 S2, eq func(E1, E2) bool) boolfunc(fd int, p []byte, oob []byte, to Sockaddr, flags int) (n int, err error)invalid function signature for %s: second return value should be error; is %s%s.Referrers()[%d] = %s = %s is not an instruction belonging to this functionrange function continued iteration after function for loop body returned falseunmarshal failed to match one of [InlineCompletionList []InlineCompletionItem]reflect: embedded type with methods not implemented if type is not first fieldgo.sum is out of sync with go.mod. Please update it by applying the quick fix.pattern %q (registered at %s) conflicts with pattern %q (registered at %s): %shttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/modernize#unsafefuncswrong number of values in call to (*testing.F).Add: %d, fuzz target expects %d%s omit type %s from declaration; it will be inferred from the right-hand side(UnaryExpr "!" (CallExpr (SelectorExpr (Ident "bytes") (Ident "Equal")) args))should not have an empty default case in a for+select loop; the loop will spinUsing a non-octal \'os.FileMode\' that looks like it was meant to be in octal.elicit schema property %q has %d enum values but %d enumNames, they must matchfunc(parent Context, timeout time.Duration, cause error) (Context, CancelFunc)115792089210356248762697446949407573530086143415290314195533631308867097853951115792089210356248762697446949407573529996955224135760342422259061068512044369crypto/rsa: use of PKCS#1 v1.5 encryption is not allowed in FIPS 140-only modex509: signature check attempts limit reached while verifying certificate chainCould not parse '%s' as a hexadecimal number, but the lexer claims it's OK: %sconsider using filters to ensure at most one Comparer or Transformer may applycannot convert slice with length %y to array or pointer to array with length %xtype %T not one of [CallHierarchyOptions CallHierarchyRegistrationOptions bool]type %T not one of [DocumentColorOptions DocumentColorRegistrationOptions bool]type %T not one of [TypeHierarchyOptions TypeHierarchyRegistrationOptions bool]internal error: package name is %q, want %q (id=%q, path=%q) (see issue #60904)http2: server closing client connection; error reading frame from client %s: %vhttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/modernize#errorsastypehttps://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/modernize#newexprhttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/modernize#slicesdeletehttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/modernize#stditerators%s expects to unmarshal into a pointer, but the provided value is not a pointer\'sync.WaitGroup.Add\' called inside the goroutine, leading to a race conditionCalled \'testing.T.FailNow\' or \'SkipNow\' in a goroutine, which isn't allowedDeferred \'Lock\' right after locking, likely meant to defer \'Unlock\' insteadThe documentation of an exported function should start with the function's name%s not supported as argument to built-in %s for go1.18 (see go.dev/issue/50937)tls: client certificate private key of type %T does not implement crypto.Signerfunc(s string, quote byte) (value rune, multibyte bool, tail string, err error)Substituting types.Signatures with generic functions are currently unsupported.http: RoundTripper implementation (%T) returned a nil *Response with a nil errorbug: unexpected way for two patterns %s and %s to conflict: methods %s, paths %sthis return statement may be reached without using the %s var defined on line %dhttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/modernize#appendclippedhttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/modernize#stringbuilderthe goroutine calls T.%s, which must be called in the same goroutine as the test(BinaryExpr (Symbol "runtime.GOOS") op@(Or "==" "!=") lit@(BasicLit "STRING" _))If you can't upgrade and want this message to go away, please install gopls %s. crypto/rand: blocked for 60 seconds waiting to read random data from the kernel tls: either ServerName or InsecureSkipVerify must be specified in the tls.Configfunc(url string, contentType string, body io.Reader) (resp *Response, err error)func(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)x509: invalid signature: parent certificate cannot sign this kind of certificatecrypto/ecdh: internal error: nistec ScalarBaseMult failed for a fixed-size inputfiles cannot contain NULL bytes; probably using UTF-16; TOML files must be UTF-8size of data directories(%d) is inconsistent with number of data directories(%d) (bad use of unsafe.Pointer or having race conditions? try -d=checkptr or -race) type %T not one of [ImplementationOptions ImplementationRegistrationOptions bool]unmarshal failed to match one of [MonikerOptions MonikerRegistrationOptions bool]type %T not one of [SelectionRangeOptions SelectionRangeRegistrationOptions bool]type %T not one of [TypeDefinitionOptions TypeDefinitionRegistrationOptions bool]%#v returned a nil result and nil error for a %q Request that requires a Responsehttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/modernize#reflecttypeforhttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/modernize#slicescontainshttps://pkg.go.dev/golang.org/x/tools/go/analysis/passes/modernize#testingcontext (Or (AssignStmt _ (Or ">>=" "<<=") _) (BinaryExpr _ (Or ">>" "<<") _)) cannot use type %s outside a type constraint: interface is (or embeds) comparablecannot use type %s outside a type constraint: interface contains type constraints-f={{.Dir}} {{.ImportPath}} {{.Root}} {{.Goroot}} {{if .Error}}{{.Error}}{{end}} keeping param %q: arg contains perhaps the last reference to caller local %v @ %vfunc(addr *unsafe.Pointer, old unsafe.Pointer, new unsafe.Pointer) (swapped bool)Package(%q).Build(): unsatisfied import: Program.CreatePackage(%q) was not calledcrypto/aes: internal error: using generic implementation despite hardware supportcrypto/rsa: use of public exponent <= 2¹⁶ is not allowed in FIPS 140-only modecrypto/rsa: use of primes of different sizes is not allowed in FIPS 140-only modeunmarshal failed to match one of [DiagnosticOptions DiagnosticRegistrationOptions]inconsistent metadata during import: for package path %q, found both IDs %q and %qNo active builds contain %s: consider opening a new workspace folder containing ithttps://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/modernize#stringscuthttps://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/simplifycompositelitInstead of using \'fmt.Print(fmt.Sprintf(...))\', one can use \'fmt.Printf(...)\'.%s has been deprecated since %s and an alternative has been available since %s: %skeys used with context.WithValue must be comparable, but type %s is not comparable(BinaryExpr (Symbol "runtime.GOARCH") op@(Or "==" "!=") lit@(BasicLit "STRING" _))Error variables that are part of an API should be called \'errFoo\' or \'ErrFoo\'.%s is a function, not a method (query at 'func' token to find matching signatures)refusing to use HTTP_PROXY value in CGI environment; see golang.org/s/cgihttpproxyinvalid //go:fix inline directive: const value is not the name of another constantfunc(curve Curve, rand io.Reader) (priv []byte, x *big.Int, y *big.Int, err error)func(network string, raddr string, priority Priority, tag string) (*Writer, error)x509: a root or intermediate certificate is not authorized to sign for this name: expected all size classes up to min size for malloc header to fit in one-page spansreflect: embedded type with methods not implemented if there is more than one fieldjson: invalid use of ,string struct tag, trying to unmarshal unquoted value into %vThe `%s` directory is loaded using a custom golang.org/x/tools/go/packages driver. https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/modernize#stringscutprefixSelect statements with a single case can be replaced with a simple send or receive.the checked variable contains a function and is never nil; did you mean to call it?cannot use ~ outside of interface or type constraint (use ^ for bitwise complement){{if and (eq .Kind "slice") (not .StmtOK) -}} append({{.X}}, {{.Cursor}}) {{- end}}{{if and (eq .Kind "tuple") .StmtOK -}} {{.Import "fmt"}}.Println({{.X}}) {{- end}}tls: failed to decrypt second client hello encrypted client hello extension payloadcrypto/hkdf: use of keys shorter than 112 bits is not allowed in FIPS 140-only modefunc(pos token.Pos, pkg *Package, name string, typ Type, val constant.Value) *Constfunc(s string, base int, prec uint, mode RoundingMode) (f *Float, b int, err error)convert %s -> %s: at least one type must be basic (or all basic, []byte, or []rune)crypto/cipher: use of CBC with non-AES ciphers is not allowed in FIPS 140-only modecrypto/cipher: use of CTR with non-AES ciphers is not allowed in FIPS 140-only modecrypto/cipher: use of GCM with non-AES ciphers is not allowed in FIPS 140-only modecrypto/rsa: use of keys smaller than 2048 bits is not allowed in FIPS 140-only modex509: issuer has name constraints but leaf contains unknown or unconstrained name: (possibly because of %q while trying to verify candidate authority certificate %q)crypto/hmac: use of keys shorter than 112 bits is not allowed in FIPS 140-only modeunmarshal failed to match one of [NotebookCellTextDocumentFilter TextDocumentFilter] {{define "title"}}Gopls version information{{end}} {{define "body"}} {{.}} {{end}} This is not a Go workspace. To work on Go code, open a directory inside a Go module.stack too short to match cached location; stk = %#x, l.pcs = %#x, original stk = %#xshould use fmt.%s instead of fmt.%s(fmt.Sprintf(...)) (but don't forget the newline)invalid argument: cannot clear %s: argument must be (or constrained by) map or slicean embedded field must be renamed at its declaration (since it renames the type too)tls: downgrade attempt detected, possibly due to a MitM attack or a broken middleboxfunc(dialer *net.Dialer, network string, addr string, config *Config) (*Conn, error)func(rand io.Reader, template *CertificateRequest, priv any) (csr []byte, err error)func(fd int, offset int64, length int, prot int, flags int) (data []byte, err error)invalid GOARM: must start with 5, 6, or 7, and may optionally end in either %q or %qjsonschema: schemas at %s do not form a tree; %s appears more than once (also at %s)x509: signature algorithm specifies an %s public key, but have public key of type %Texpected a top-level item to end with a newline, comment, or EOF, but got %q insteadmvdan.cc/gofumpt/internal/govendor/go/doc/comment: internal error: unknown span kindTimeBegin: %s TimeEnd: %s Program: %s Version: %s GoVersion: %s GOOS: %s GOARCH: %s reflect.Value.Interface: cannot return value obtained from unexported field or methodload failed: module name in %s contains "command-line-arguments", which is disallowedhttp: WriteHeader called with both Transfer-Encoding of %q and a Content-Length of %ddeclarations following go:embed directives must be of type string, []byte or embed.FS(IfStmt nil cond [(AssignStmt x@(Object _) "=" (Builtin b@(Or "true" "false")))] nil)Field assignment that will never be observed. Did you mean to use a pointer receiver?use io.Writer.Write instead of converting from []byte to string to use io.WriteStringfunc(random io.Reader, pub *PublicKey, msg []byte, opts *OAEPOptions) ([]byte, error)func(ctx context.Context, method string, target string, body io.Reader) *http.Requestfunc(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error)cannot decode %q, export data version %d is greater than maximum supported version %d^([a-z-]+:[a-z]+|line\b|export\b|extern\b|sys(nb)?\b|no(lint|inspection)\b)|NOSONAR\bcrypto/rsa: use of PSS salt longer than the hash is not allowed in FIPS 140-only modex509: failed to parse private key (use ParseECPrivateKey instead for this key format)type %T not one of [TextDocumentContentOptions TextDocumentContentRegistrationOptions]reflect: New of type that may not be allocated in heap (possibly undefined cgo C type)%s arg %q should probably be a string or a slog.Attr (previous arg %q cannot be a key)(SelectStmt (CommClause (UnaryExpr "<-" (CallExpr (Symbol "time.After") [arg])) body))string literal contains Unicode %s characters, consider using escape sequences insteadinternal error: go list gave a %q error with an import stack without importing package{{if and (eq .Kind "slice") .StmtOK -}} {{.Import "slices"}}.Reverse({{.X}}) {{- end}}{{if (eq (.TypeName .Type) "int") -}} {{.Import "strconv"}}.Itoa({{.X}}) {{- end}}tls: MinVersion must be >= VersionTLS13 if EncryptedClientHelloConfigList is populatedtls: MaxVersion must be >= VersionTLS13 if EncryptedClientHelloConfigList is populatedfunc(ctx context.Context, method string, url string, body io.Reader) (*Request, error)func(buf []byte, max int, names []string) (consumed int, count int, newnames []string)func(argv0 string, argv []string, attr *ProcAttr) (pid int, handle uintptr, err error)x509: a root or intermediate certificate is not authorized for an extended key usage: mvdan.cc/gofumpt/internal/govendor/go/doc/comment: internal error: not making progresstype %T not one of [NotebookDocumentFilterWithCells NotebookDocumentFilterWithNotebook]Redundant call to \'net/http.CanonicalHeaderKey\' in method call on \'net/http.Header\'The documentation of an exported variable or constant should start with variable's name </pre> <script> document.getElementById('compiling').innerText = %q; </script> </body>func(rand io.Reader, priv *PrivateKey, hash []byte) (r *big.Int, s *big.Int, err error)func(fset *token.FileSet, filename string, src any, mode Mode) (f *ast.File, err error)func(service string, proto string, name string) (cname string, addrs []*SRV, err error) Example: $ gopls workspace_symbol -matcher fuzzy 'wsymbols' workspace_symbol-flags: type %T not one of [NotebookDocumentSyncOptions NotebookDocumentSyncRegistrationOptions]internal error: load called with multiple scopes when a file scope is present (file: %s)Thank you. Telemetry uploading is now enabled. To disable telemetry uploading, run %s. switch { case x == 1 || x == 2, x == 3: ... case x == 4: ... default: ... }the finalizer closes over the object, preventing the finalizer from ever running (at %s)x509: failed to parse private key (use ParsePKCS8PrivateKey instead for this key format)x509: failed to parse private key (use ParsePKCS1PrivateKey instead for this key format)unmarshal failed to match one of [DeclarationOptions DeclarationRegistrationOptions bool]unmarshal failed to match one of [InlineValueOptions InlineValueRegistrationOptions bool]type %T not one of [LinkedEditingRangeOptions LinkedEditingRangeRegistrationOptions bool]internal error: could not locate file for primary type checker error %v: %v (fixed files)comma-separated list of names of methods of type func() string whose results must be usedfunc(random io.Reader, priv *PrivateKey, hash crypto.Hash, hashed []byte) ([]byte, error)func(pub *PublicKey, hash crypto.Hash, digest []byte, sig []byte, opts *PSSOptions) errorfunc(p encoding.TextUnmarshaler, name string, value encoding.TextMarshaler, usage string)func(fset *token.FileSet, filename string, src any, mode Mode) (expr ast.Expr, err error)func(source string, target string, fstype string, flags uintptr, data string) (err error)func(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) Example: show the diagnostic results of this file: $ gopls check internal/cmd/check.go Example: show the semantic tokens for this file: $ gopls semtok internal/cmd/semtok.go unmarshal failed to match one of [Lit_ClientSemanticTokensRequestOptions_range_Item1 bool]http2: server sent GOAWAY and closed the connection; LastStreamID=%v, ErrCode=%v, debug=%q\'(*regexp.Regexp).FindAll\' called with \'n == 0\', which will always return zero resultsshould not use built-in type %s as key for value; define your own type to avoid collisionsThe variable in the loop condition never changes, are you incrementing the wrong variable?Discarding the return values of a function without side effects, making the call pointless(CallExpr (SelectorExpr (CallExpr (SelectorExpr recv (Ident "Query")) []) (Ident meth)) _)comment on exported type %s should be of the form "%s ..." (with optional leading article)func must be func(yield func(...) bool): yield func returns user-defined boolean, not bool{"ImportPath": "command-line-arguments","Incomplete": true,"Error": {"Pos": "","Err": %q}}func(trap uintptr, a1 uintptr, a2 uintptr, a3 uintptr) (r1 uintptr, r2 uintptr, err Errno)set the scanning level desired, one of 'module', 'package', or 'symbol' (default 'symbol')unmarshal failed to match one of [FoldingRangeOptions FoldingRangeRegistrationOptions bool] (AssignStmt [_ (Ident "_")] _ (Or (IndexExpr _ _) (UnaryExpr "<-" _))) cannot use interface %s in conversion (contains specific type constraints or is comparable)in package %s: ExportObjectFact(%s, %T): can't set fact on object belonging another packagereplacement module without version must be directory path (rooted or starting with . or ..){{if and (eq .Kind "slice") .StmtOK .Obj -}} {{.X}} = append({{.X}}, {{.Cursor}}) {{- end}}elicit schema property %q contains nested properties, only primitive properties are allowedtls: unexpected encrypted client hello extension in server hello despite ECH being acceptedfunc(w ResponseWriter, req *Request, name string, modtime time.Time, content io.ReadSeeker)Please copy the above information into the GitHub issue, if you are comfortable sharing it. Indexed %d/%d packages. (Set "analysisProgressReporting" to false to disable notifications.)The `%s` directory is in the go workspace defined by `%s`, with the following main modules: (BinaryExpr (CallExpr (Symbol "bytes.Compare") args) op@(Or "==" "!=") (IntegerLiteral "0"))(CallExpr (SelectorExpr (CallExpr (Symbol "time.Now") []) (Symbol "(time.Time).Sub")) [arg])Various methods in the \"strings\" package expect valid UTF-8, but invalid input is providedthis call to os.RemoveAll deletes the user's entire %s directory, not a subdirectory thereintls: server sent encrypted client hello retry configs after accepting encrypted client hellotls: handshake hash for a client certificate requested after discarding the handshake bufferfunc(matchString func(pat string, str string) (bool, error), benchmarks []InternalBenchmark)func(matchString func(pat string, str string) (bool, error), tests []InternalTest) (ok bool)invalid GOARM64: must start with v8.{0-9} or v9.{0-5} and may optionally end in %q and/or %qunmarshal failed to match one of [CallHierarchyOptions CallHierarchyRegistrationOptions bool]unmarshal failed to match one of [DocumentColorOptions DocumentColorRegistrationOptions bool]unmarshal failed to match one of [TypeHierarchyOptions TypeHierarchyRegistrationOptions bool]\bTEXT\b(.*)·([^\(]+)\(SB\)(?:\s*,\s*([0-9A-Z|+()]+))?(?:\s*,\s*\$(-?[0-9]+)(?:-([0-9]+))?)?(CallExpr (Symbol fn@(Or "regexp.MustCompile" "regexp.Compile")) [lit@(BasicLit "STRING" _)])the first argument of io.Seeker is the offset, but an io.Seek* constant is being used instead%s always equals 0; %s is defined as iota and has value 0, maybe %s is meant to be 1 << iota?%s is a type, not a function, and %s doesn't sort your values; consider using sort.%s insteadtls: unsupported certificate: private key is *ed25519.PrivateKey, expected ed25519.PrivateKeyfunc(fset *token.FileSet, pkg *Package, pos token.Pos, expr ast.Expr, info *Info) (err error)crypto/rsa: %d-bit keys are insecure (see https://go.dev/pkg/crypto/rsa#hdr-Minimum_key_size)unrecognized vulndb format; see https://go.dev/security/vuln/database#api for accepted schema%s always equals %s; %s is defined as iota and has value 0, maybe %s is meant to be 1 << iota? A potential Go compiler directive was found, but is ineffectual as it begins with whitespace.func(signer Signer, rand io.Reader, msg []byte, opts SignerOpts) (signature []byte, err error)func(fset *token.FileSet, files []*ast.File, importPath string, opts ...any) (*Package, error)func(version int, traceback unsafe.Pointer, context unsafe.Pointer, symbolizer unsafe.Pointer)func(year int, month Month, day int, hour int, min int, sec int, nsec int, loc *Location) Timetype %T not one of [InlineValueEvaluatableExpression InlineValueText InlineValueVariableLookup]unmarshal failed to match one of [ImplementationOptions ImplementationRegistrationOptions bool]unmarshal failed to match one of [SelectionRangeOptions SelectionRangeRegistrationOptions bool]unmarshal failed to match one of [TypeDefinitionOptions TypeDefinitionRegistrationOptions bool]%[+\-#]*([0-9]+|(\[[0-9]+\])?\*)?\.?([0-9]+|(\[[0-9]+\])?\*)?(\[[0-9]+\])?[bcdefgopqstvxEFGTUX]func(fset *token.FileSet, pkg *Package, pos token.Pos, expr string) (_ TypeAndValue, err error)warning: binary built with Go version %s, only standard library vulnerabilities will be checked For details on package patterns, see https://pkg.go.dev/cmd/go#hdr-Package_lists_and_patterns.A nil \'context.Context\' is being passed to a function, consider using \'context.TODO\' insteadshould not use empty anonymous struct as key for value; define your own type to avoid collisionsthis comparison is %s true; the lhs of the comparison has been assigned a concretely typed value^v[0-9]+\.(0\.0-|\d+\.\d+-([^+]*\.)?0\.)\d{14}-[A-Za-z0-9]+(\+[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$func(hash hash.Hash, random io.Reader, pub *PublicKey, msg []byte, label []byte) ([]byte, error)node [style=filled,fillcolor=white,fontsize=16,fontname="Menlo,Times,serif",margin="0.01,0.03"];b3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aefaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab73617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5fcrypto/rsa: use of hash functions other than SHA-2 or SHA-3 is not allowed in FIPS 140-only modetype %T not one of [RelatedFullDocumentDiagnosticReport RelatedUnchangedDocumentDiagnosticReport]http: RoundTripper implementation (%T) returned a *Response with content length %d but a nil Bodyimpossible type assertion: no type can implement both %v and %v (conflicting types for %v method)the argument's underlying type is a string, should use a simple conversion instead of fmt.Sprintf (IfStmt nil (BinaryExpr x@(Object _) "!=" (Builtin "nil")) [(RangeStmt _ _ _ x _)] nil)Calling functions like \'math.Ceil\' on floats converted from integers doesn't do anything useful{{if and (ne .Kind "tuple") .StmtOK -}} {{.VarName .Type "" | .Placeholder }} := {{.X}} {{- end}}crypto/hkdf: use of hash functions other than SHA-2 or SHA-3 is not allowed in FIPS 140-only modefunc[H hash.Hash](h func() H, pseudorandomKey []byte, info string, keyLength int) ([]byte, error)func(parent context.Context, signals ...os.Signal) (ctx context.Context, stop context.CancelFunc)func(output io.Writer, minwidth int, tabwidth int, padding int, padchar byte, flags uint) *Writercrypto/hmac: use of hash functions other than SHA-2 or SHA-3 is not allowed in FIPS 140-only mode. Run the call-level analysis to understand whether your code actually calls the vulnerabilities. Example: list links contained within a file: $ gopls links internal/cmd/check.go links-flags: type %T not one of [TextDocumentFilterLanguage TextDocumentFilterPattern TextDocumentFilterScheme]first argument to exec.Command looks like a shell command, but a program name or path are expectedin Go, the floating-point literal '-0.0' is the same as '0.0', it does not produce a negative zerostring literal contains the Unicode %s character %U, consider using the %q escape sequence insteadinvalid size (%d) in the archive file: %d bytes remain without section headers (recompile package)<div><a href=%q title='View in pkg.go.dev'><img id='pkgsite' src='/assets/go-logo-blue.svg'/></a> elicit schema property %q has enum values but type is %q, enums are only supported for string typeNoClientCertRequestClientCertRequireAnyClientCertVerifyClientCertIfGivenRequireAndVerifyClientCertfunc(T Type, addressable bool, pkg *Package, name string) (obj Object, index []int, indirect bool)func(matchString func(pat string, str string) (bool, error), examples []InternalExample) (ok bool)crypto/ecdsa: use of hash functions other than SHA-2 or SHA-3 is not allowed in FIPS 140-only mode Please copy the full information printed by `gopls bug` here, if you are comfortable sharing it. internal error: on package %s, analyzer %s returned a result of type %v, but declared ResultType %vthe cancel function returned by context.%s should be called, not discarded, to avoid a context leakThe \'time.Since\' helper has the same effect as using \'time.Now().Sub(x)\' but is easier to read.The \'time.Until\' helper has the same effect as using \'x.Sub(time.Now())\' but is easier to read.func(ek *mlkem.EncapsulationKey768, random []byte) (sharedKey []byte, ciphertext []byte, err error)func(rand io.Reader, template *Certificate, parent *Certificate, pub any, priv any) ([]byte, error)func[M1 ~map[K]V1, M2 ~map[K]V2, K comparable, V1, V2 any](m1 M1, m2 M2, eq func(V1, V2) bool) boolcannot validate against a struct; see https://github.com/google/jsonschema-go/issues/23 for detailsunmarshal failed to match one of [TextDocumentContentOptions TextDocumentContentRegistrationOptions]func(ek *mlkem.EncapsulationKey1024, random []byte) (sharedKey []byte, ciphertext []byte, err error)func(t *testing.T, newHandler func(*testing.T) slog.Handler, result func(*testing.T) map[string]any)ed25519: expected opts.Hash zero (unhashed message, for standard Ed25519) or SHA-512 (for Ed25519ph)unmarshal failed to match one of [NotebookDocumentFilterWithCells NotebookDocumentFilterWithNotebook]type %T not one of [WorkspaceFullDocumentDiagnosticReport WorkspaceUnchangedDocumentDiagnosticReport] (GoStmt (CallExpr (FuncLit _ call@(CallExpr (Symbol "(*sync.WaitGroup).Add") _):_) _))Negating a boolean twice (\'!!b\') is the same as writing \'b\'. This is either redundant, or a typo.(IfStmt (AssignStmt [obj@(Ident _) ok@(Ident _)] ":=" assert@(TypeAssertExpr obj _)) ok _ elseBranch)could not parse GOARCH and Go compiler in format "<GOARCH> <compiler>": stdout: <<%s>> stderr: <<%s>>{{if (eq (.TypeName .Type) "string") -}} {{.Import "strings"}}.Split({{.X}}, "{{.Cursor}}") {{- end}}elicit schema property %q has unsupported format %q, only email, uri, date, and date-time are allowedconsider using "google.golang.org/protobuf/testing/protocmp".Transform to compare proto.Message typesundefined symbols index in dynamic symbol table command is greater than symbol table length (%d > %d)cgocheck > 1 mode is no longer supported at runtime. Use GOEXPERIMENT=cgocheck2 at build time instead.unmarshal failed to match one of [NotebookDocumentSyncOptions NotebookDocumentSyncRegistrationOptions]http2: failed reading the frame payload: %w, note that the frame header looked like an HTTP/1.1 headerin Go, the floating-point expression '%s' is the same as '%s(%s)', it does not produce a negative zeroreceiver name should be a reflection of its identity; don't use generic names such as "this" or "self"usage: %s module/path [v1.2.3] => other/module v1.4 or %s module/path [v1.2.3] => ../local/directoryspecify format output The supported values are 'text', 'json', 'sarif', and 'openvex' (default 'text')unmarshal failed to match one of [LinkedEditingRangeOptions LinkedEditingRangeRegistrationOptions bool]HTTP/1.1 400 Bad Request Content-Type: text/plain; charset=utf-8 Connection: close 400 Bad Request (CallExpr fn@(Or (Symbol "fmt.Sprint") (Symbol "fmt.Sprintf")) [lit@(BasicLit "STRING" _)]) (CallExpr (Symbol (Or "os/signal.Ignore" "os/signal.Notify" "os/signal.Reset")) _)</table> <a href="goroutine?debug=2">full goroutine stack dump</a> <br> <p> Profile Descriptions: <ul> func(rand io.Reader, template *RevocationList, issuer *Certificate, priv crypto.Signer) ([]byte, error)func(rand io.Reader, blockType string, data []byte, password []byte, alg PEMCipher) (*pem.Block, error)func(fset *token.FileSet, files map[string]*File, importer Importer, universe *Scope) (*Package, error)internal error: package name is %q, want %q (id=%q, path=%q) (see issue #60904) (using GOPACKAGESDRIVER)(BinaryExpr left@(TrulyConstantExpression _) tok@(Or "==" "!=") right@(Not (TrulyConstantExpression _)))elicit schema property %q has unsupported type %q, only string, number, integer, and boolean are allowedfunc(fd int, p []byte, oob []byte, flags int) (n int, oobn int, recvflags int, from Sockaddr, err error)mvdan.cc/gofumpt/internal/govendor/go/printer: source filename contains unexpected newline character: %qThe 'run_govulncheck' codelens is superseded by the 'vulncheck' codelens. Only 'vulncheck' should be set.go.sum is out of sync with go.mod: entry for %v is missing. Please updating it by applying the quick fix. (CallExpr (Ident "copy") [(SliceExpr slice nil limit nil) (SliceExpr slice offset nil nil)])the argument's underlying type is a slice of bytes, should use a simple conversion instead of fmt.Sprintfshould not use built-in type %s (via alias %s) as key for value; define your own type to avoid collisionsfunc(hash hash.Hash, random io.Reader, priv *PrivateKey, ciphertext []byte, label []byte) ([]byte, error)func(rand io.Reader, priv *PrivateKey, hash crypto.Hash, digest []byte, opts *PSSOptions) ([]byte, error) Example: update imports statements in a file: $ gopls imports -w internal/cmd/check.go imports-flags: A value assigned to a variable is never read before being overwritten. Forgotten error check or dead code?func[Hash hash.Hash](h func() Hash, password string, salt []byte, iter int, keyLength int) ([]byte, error)ed25519: expected opts.HashFunc() zero (unhashed message, for standard Ed25519) or SHA-512 (for Ed25519ph)asn1: time did not serialize back to the original value and may be invalid: given %q, but serialized as %q {{define "title"}}GoPls Debug pages{{end}} {{define "body"}} <a href="/debug/pprof">Profiling</a> {{end}} keys in http.Header are canonicalized, %q is not canonical; fix the constant or use http.CanonicalHeaderKeyCannot extract selection: the code refers to a local type whose definition lies outside the extracted block **Note:** The project imports packages with known vulnerabilities, but does not call the vulnerable code. func[Hash hash.Hash](h func() Hash, secret []byte, salt []byte, info string, keyLength int) ([]byte, error)func(dst Image, r image.Rectangle, src image.Image, sp image.Point, mask image.Image, mp image.Point, op Op)crypto/cipher: use of GCM with arbitrary IVs is not allowed in FIPS 140-only mode, use NewGCMWithRandomNonceunmarshal failed to match one of [InlineValueEvaluatableExpression InlineValueText InlineValueVariableLookup]\'io.Seeker.Seek\' is being called with the whence constant as the first argument, but it should be the secondinternal error: gob encoding of analysis fact %s failed: %v; please report a bug against fact %T in package %qone of [-add-tags, -add-options, -remove-tags, -remove-options, -clear-tags, -clear-options] should be definedunmarshal failed to match one of [RelatedFullDocumentDiagnosticReport RelatedUnchangedDocumentDiagnosticReport] A series of if/else-if checks comparing the same variable against values can be replaced with a tagged switch.unmarshal failed to match one of [TextDocumentFilterLanguage TextDocumentFilterPattern TextDocumentFilterScheme] Calling \'fmt.Sprint\' with a single string argument is unnecessary and identical to using the string directly.cannot inline variable: its initializer expression refers to %q, which is shadowed by the declaration at line %d{{if and (ne .Kind "tuple") .StmtOK -}} {{.Import "fmt"}}.Printf("{{.EscapeQuotes .X}}: %v\n", {{.X}}) {{- end}}cannot inline, because the callee refers to %s %q, which in the caller is shadowed by a %s (declared at line %d)printf-style function with dynamic format string and no further arguments should use print-style function insteadtype %T not one of [NotebookDocumentFilterNotebookType NotebookDocumentFilterPattern NotebookDocumentFilterScheme]http2: Transport: cannot retry err [%v] after Request.Body was written; define Request.GetBody to avoid this error%s refers to the result of a failed type assertion and is a zero value, not the value that was being type-asserted{{.Path}} {{.Dir}} {{.GoMod}} {{.GoVersion}} {{range context.ReleaseTags}}{{if eq . "go1.14"}}{{.}}{{end}}{{end}} unmarshal failed to match one of [WorkspaceFullDocumentDiagnosticReport WorkspaceUnchangedDocumentDiagnosticReport]invalid filter %v, operator %v not supported. If you want to have this operator supported, consider filing an issue (CallExpr (Symbol name@(Or "(*text/template.Template).Parse" "(*html/template.Template).Parse")) [s])the JSON string option only applies to fields of type string, floating point, integer or bool, or pointers to those An untagged switch that compares a single variable against a series of values can be replaced with a tagged switch.When slicing, the second index defaults to the length of the value, making \'s[n:len(s)]\' and \'s[n:]\' equivalent.func(name string, magic string, decode func(io.Reader) (Image, error), decodeConfig func(io.Reader) (Config, error))3940200619639447921227904010014361380507973927046544666794829340424572177149687032904726608825893800186160697311231939402006196394479212279040100143613805079739270465446667946905279627659399113263569398956308152294913554433653942643tls: failed to find "CERTIFICATE" PEM block in certificate input after skipping PEM blocks of the following types: %vnumber of undefined symbols after index in dynamic symbol table command is greater than symbol table length (%d > %d)cannot inline, because the callee refers to built-in %q, which in the caller is shadowed by a %s (declared at line %d)func(name string, text string, leftDelim string, rightDelim string, funcs ...map[string]any) (map[string]*Tree, error)can't read export data for %q directly from an archive file (call gcexportdata.NewReader first to extract export data)second argument to errors.As must be a non-nil pointer to either a type that implements error, or to any interface typeIf \'n >= 0\', the function returns at most \'n\' matches/submatches. To return all results, specify a negative number.Code such as \"if &x == nil\" is meaningless, because taking the address of a variable always yields a non-nil pointer.%s(n) generates a random value 0 <= x < n; that is, the generated values don't include n; %s therefore always returns 0do not pass a nil Context, even if a function permits it; pass context.TODO if you are unsure about which Context to useTo work with multiple modules simultaneously, please upgrade to Go 1.18 or later, reinstall gopls, and use a go.work file. Use \'copy()\' for copying elements from one slice to another. For arrays of identical size, you can use simple assignment.

{{if and (eq .Kind "slice") .StmtOK -}} for {{ .VarName nil "i" | .Placeholder }} := range {{.X}} { {{.Cursor}} } {{- end}}tls: failed to find certificate PEM data in certificate input, but did find a private key; PEM inputs may have been switchedfunc(fset *token.FileSet, path string, filter func(fs.FileInfo) bool, mode Mode) (pkgs map[string]*ast.Package, first error)cannot rename package: module path %q is the same as the package path, so renaming the package directory would have no effect{{if and (eq .Kind "map") .StmtOK -}} for {{.VarName .KeyType "k" | .Placeholder}} := range {{.X}} { {{.Cursor}} } {{- end}} The methods on \'net/http.Header\', namely \'Add\', \'Del\', \'Get\' and \'Set\', already canonicalize the given header name.(AssignStmt target@(Ident _) "=" (CallExpr typ@(Symbol (Or "sort.Float64Slice" "sort.IntSlice" "sort.StringSlice")) [target]))Stack traces of all current goroutines. Use debug=2 as a query parameter to export in the same format as an unrecovered panic.func(recv *Var, recvTypeParams []*TypeParam, typeParams []*TypeParam, params *Tuple, results *Tuple, variadic bool) *Signaturefunc(trap uintptr, a1 uintptr, a2 uintptr, a3 uintptr, a4 uintptr, a5 uintptr, a6 uintptr) (r1 uintptr, r2 uintptr, err Errno)A sampling of memory allocations of live objects. You can specify the gc GET parameter to run GC before taking the heap sample.{{if and (eq .Kind "chan") .StmtOK -}} for {{.VarName .ElemType "e" | .Placeholder}} := range {{.X}} { {{.Cursor}} } {{- end}}{{if and (eq .Kind "slice") (eq (.TypeName .ElemType) "string") -}} {{.Import "strings"}}.Join({{.X}}, "{{.Cursor}}") {{- end}} --------------------------------------------------------------------------------------------------------------------------------================================================================================================================================unmarshal failed to match one of [NotebookDocumentFilterNotebookType NotebookDocumentFilterPattern NotebookDocumentFilterScheme]00000000000000000000000000000000000000000000001122222222221000000333333333333333333333333330000002222222222222222222222222200000With \'n == 0\', zero instances will be replaced. To replace all instances, use a negative number, or use \'strings.ReplaceAll\'. (BinaryExpr (CallExpr fun@(Symbol (Or "strings.ToLower" "strings.ToUpper")) [a]) tok@(Or "==" "!=") (CallExpr fun [b]))tls: failed to find PEM block with type ending in "PRIVATE KEY" in key input after skipping PEM blocks of the following types: %vnoSemanticString setting is deprecated, use semanticTokenTypes instead (though you can continue to apply them for the time being).noSemanticNumber setting is deprecated, use semanticTokenTypes instead (though you can continue to apply them for the time being).assigning the result of this type assertion to a variable (switch %s := %s.(type)) could eliminate type assertions in switch casesThis check validates the format, number base and bit size arguments of the various parsing and formatting functions in \'strconv\'.Failed to enable Go telemetry: %v To enable telemetry manually, please run `go run golang.org/x/telemetry/cmd/gotelemetry@latest on`0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f0000c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650{{if and (eq .Kind "map") .StmtOK -}} {{$k := (.VarName .KeyType "k")}}for {{$k}} := range {{.X}} { delete({{.X}}, {{$k}}) } {{end}}(CallExpr fun@(SelectorExpr _ (Ident "Seek")) [arg1@(SelectorExpr _ (Symbol (Or "io.SeekStart" "io.SeekCurrent" "io.SeekEnd"))) arg2])func(abbrev []byte, aranges []byte, frame []byte, info []byte, line []byte, pubnames []byte, ranges []byte, str []byte) (*Data, error)
check that struct field tags conform to reflect.StructTag.Get Also report certain struct tags (json, xml) used with unexported fields. **Note:** The project imports packages with known vulnerabilities. Use `govulncheck` to check if the project uses vulnerable symbols. ^%([+#0 -]*)(?:(?:(?:([0-9]+)|(((?:\[([0-9]+)\]))?\*)))?(?:(\.)(?:(?:([0-9]+)|(((?:\[([0-9]+)\]))?\*)))?)?)?(?:\[([0-9]+)\])?([a-zA-Z%])func(deps testDeps, tests []InternalTest, benchmarks []InternalBenchmark, fuzzTargets []InternalFuzzTarget, examples []InternalExample) *MInconsistent vendoring detected. Please re-run "go mod vendor". See https://github.com/golang/go/issues/39164 for more detail on this issue.You can use range on nil slices and maps, the loop will simply never execute. This makes an additional nil check around the loop unnecessary. (CallExpr (Symbol name@(Or "net/http.Error" "net/http.Redirect" "net/http.StatusText" "net/http.RedirectHandler")) args) (IfStmt (AssignStmt [(Ident "_") ok@(Ident _)] ":=" (IndexExpr m key)) ok [call@(CallExpr (Builtin "delete") [m key])] nil)it is not possible to use Reset's return value correctly, as there is a race condition between draining the channel and the new timer expiringfunc(matchString func(pat string, str string) (bool, error), tests []InternalTest, benchmarks []InternalBenchmark, examples []InternalExample)HTTP/1.1 431 Request Header Fields Too Large Content-Type: text/plain; charset=utf-8 Connection: close 431 Request Header Fields Too LargeGovulncheck reports known vulnerabilities in dependencies. Usage: govulncheck [flags] [patterns] govulncheck -mode=binary [flags] [binary] using time.Tick leaks the underlying ticker, consider using it only in endless functions, tests and the main package, and use time.NewTicker hereMaps given program counters to function names. Counters can be specified in a GET raw query or POST body, multiple counters are separated by '+'.By default, govulncheck runs source analysis on Go modules. Did you mean to run govulncheck with -mode=binary? For details, run govulncheck -h.\'copy()\' permits using the same source and destination slice, even with overlapping ranges. This makes it ideal for sliding elements in a slice.Using \'time.Tick\' in a way that will leak. Consider using \'time.NewTicker\', and only use \'time.Tick\' in tests, commands and endless functions for _, e := range y { x = append(x, e) } for i := range y { x = append(x, y[i]) } for i := range y { v := y[i] x = append(x, v) }crypto/tls: ExportKeyingMaterial is unavailable when neither TLS 1.3 nor Extended Master Secret are negotiated; override with GODEBUG=tlsunsafeekm=1enable display of additional information specified by the comma separated `list` The supported values are 'traces','color', 'version', and 'verbose'An if/else if chain has repeated conditions and no side-effects; if the condition didn't match the first time, it won't match the second time, either (ForStmt nil nil nil select@(SelectStmt (CommClause (Or (UnaryExpr "<-" _) (AssignStmt _ _ (UnaryExpr "<-" _))) _)))Packages must have a package comment that is formatted according to the guidelines laid out in https://go.dev/wiki/CodeReviewComments#package-comments.the 'fieldalignment' analyzer was removed in gopls/v0.17.0; instead, hover over struct fields to see size/offset information (https://go.dev/issue/67762) (BinaryExpr (BinaryExpr x lhsOp@(Or "==" "!=") nilly) outerOp@(Or "&&" "||") (BinaryExpr (CallExpr (Builtin "len") [x]) rhsOp k))invalid workspace folder path: %w; check that the spelling of the configured workspace folder path agrees with the spelling reported by the operating system68647976601306097149819007990813932172694353001433054093944634591855431833976560521225596406614545549772963113914808580371219879997166438125740282911150571516864797660130609714981900799081393217269435300143305409394463459185543183397655394245057746333217197532963996371363321113864768612440380340372808892707005449{{if and (eq .Kind "slice") .StmtOK -}} {{.Import "sort"}}.Slice({{.X}}, func({{.VarName nil "i"}}, {{.VarName nil "j"}} int) bool { {{.Cursor}} }) {{- end}} The arguments supplied may be simple file names, or ranges within files. Example: reformat this file: $ gopls format -w internal/cmd/check.go format-flags: CPU profile. You can specify the duration in the seconds GET parameter. After you get the profile file, use the go tool pprof command to investigate the profile.check the argument type of sort.Slice sort.Slice requires an argument of a slice type. Check that the interface{} value passed to sort.Slice is actually a slice.consider using a custom Comparer; if you control the implementation of type, you can also consider using an Exporter, AllowUnexported, or cmpopts.IgnoreUnexportedgo list failed to return CompiledGoFiles. This may indicate failure to perform cgo processing; try building at the command line. See https://golang.org/issue/38990. {{define "title"}}Analysis{{end}} {{define "body"}}

Analyzer.Run times

{{end}} {{if and (eq .Kind "slice") .StmtOK -}} for {{.VarName nil "i" | .Placeholder }}, {{.VarName .ElemType "v" | .Placeholder}} := range {{.X}} { {{.Cursor}} } {{- end}} Example: $ # 1-indexed location (:line:column or :#offset) of the target identifier $ gopls highlight helper/helper.go:8:6 $ gopls highlight helper/helper.go:#53 Example: $ # 1-indexed location (:line:column or :#offset) of the target identifier $ gopls signature helper/helper.go:8:6 $ gopls signature helper/helper.go:#53 {{if and (eq .Kind "slice") .StmtOK -}} for {{.VarName nil "i" | .Placeholder }}, {{.VarName .ElemType "v" | .Placeholder }} := range {{.X}} { {{.Cursor}} } {{- end}}{{if and (eq .Kind "map") .StmtOK -}} for {{.VarName .KeyType "k" | .Placeholder}}, {{.VarName .ElemType "v" | .Placeholder}} := range {{.X}} { {{.Cursor}} } {{- end}} The api-json command prints a JSON value that describes and documents all gopls' public interfaces. Its schema is defined by golang.org/x/tools/gopls/internal/doc.API. (CallExpr (SelectorExpr recv (Ident "WriteString")) (CallExpr fn@(Or (Symbol "fmt.Sprint") (Symbol "fmt.Sprintf") (Symbol "fmt.Sprintln")) args)){{if and (eq .Kind "tuple") .StmtOK -}} {{$a := .}}{{range $i, $v := .Tuple}}{{if $i}}, {{end}}{{$a.VarName $v.Type $v.Name | $a.Placeholder }}{{end}} := {{.X}} {{- end}}Defers are scoped to the surrounding function, not the surrounding block. In a function that never returns, i.e. one containing an infinite loop, defers will never execute.{{if and (eq .Kind "slice") .StmtOK .Obj -}} {{$v := (.VarName nil (printf "%sCopy" .X))}}{{$v}} := make([]{{.TypeName .ElemType}}, len({{.X}})) copy({{$v}}, {{.X}}) {{end}} gopls [flags] [server-flags] The server communicates using JSONRPC2 on stdin and stdout, and is intended to be run directly as a child of an editor process. server-flags: %[1]s and %[2]s both match some paths, like %[3]q. But neither is more specific than the other. %[1]s matches %[4]q, but %[2]s doesn't. %[2]s matches %[5]q, but %[1]s doesn't.The \"make\" function has default values for the length and capacity arguments. For channels, the length defaults to zero, and for slices, the capacity defaults to the length. Example: $ # 1-indexed location (:line:column or :#offset) of the target identifier $ gopls call_hierarchy helper/helper.go:8:6 $ gopls call_hierarchy helper/helper.go:#53 Example: $ # 1-indexed location (:line:column or :#offset) of the target identifier $ gopls implementation helper/helper.go:8:6 $ gopls implementation helper/helper.go:#53 Example: $ # 1-indexed location (:line:column or :#offset) of the target identifier $ gopls prepare_rename helper/helper.go:8:6 $ gopls prepare_rename helper/helper.go:#53 Example: $ # 1-based location (:line:column or :#position) of the thing to change $ gopls rename helper/helper.go:8:6 Foo $ gopls rename helper/helper.go:#53 Foo rename-flags: (CallExpr (Symbol (Or "log.Fatal" "log.Fatalln" "log.Panic" "log.Panicln" "log.Print" "log.Println")) [(CallExpr (Symbol "fmt.Sprintf") args)]) Example: $ # 1-indexed location (:line:column or :#offset) of the target identifier $ gopls references helper/helper.go:8:6 $ gopls references helper/helper.go:#53 references-flags: http2: TLSConfig.CipherSuites is missing an HTTP/2-required AES_128_GCM_SHA256 cipher (need at least one of TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 or TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256)A trace of execution of the current program. You can specify the duration in the seconds GET parameter. After you get the trace file, use the go tool trace command to investigate the trace.Loading packages failed, possibly due to a mismatch between the Go version used to build govulncheck and the Go version on PATH. Consider rebuilding govulncheck with the current Go version.{{if and (or (eq .Kind "pointer") (eq .Kind "chan") (eq .Kind "signature") (eq .Kind "interface") (eq .Kind "map") (eq .Kind "slice")) .StmtOK -}} if {{.X}} != nil { {{.Cursor}} } {{- end}}Using a select statement with a single case receiving from the result of \'time.After\' is a very elaborate way of sleeping that can much simpler be expressed with a simple call to time.Sleep.Go telemetry helps us improve Go by periodically sending anonymous metrics and crash reports to the Go team. Learn more at https://go.dev/doc/telemetry. Would you like to enable Go telemetry? report passing non-pointer or non-error values to errors.As The errorsas analyzer reports calls to errors.As where the type of the second argument is not a pointer to a type implementing error.The \'len\' function is defined for all slices, maps, and channels, even nil ones, which have a length of zero. It is not necessary to check for nil before checking that their length is not zero.00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899The \'sort.Ints\', \'sort.Float64s\' and \'sort.Strings\' functions are easier to read than \'sort.Sort(sort.IntSlice(x))\', \'sort.Sort(sort.Float64Slice(x))\' and \'sort.Sort(sort.StringSlice(x))\'. (Or (BinaryExpr (IntegerLiteral "0") ">" (CallExpr builtin@(Builtin (Or "len" "cap")) _)) (BinaryExpr (CallExpr builtin@(Builtin (Or "len" "cap")) _) "<" (IntegerLiteral "0"))) Provides Go workspace diagnostics. Checks for parse and build errors across the entire Go workspace. If provided, "files" holds absolute paths for active files, on which additional linting is performed. (IfStmt nil (BinaryExpr lhs@(Object _) "!=" (Builtin "nil")) [ ifstmt@(IfStmt (AssignStmt [(Ident "_") ok@(Object _)] _ [(TypeAssertExpr lhs _)]) ok _ nil) ] nil)(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])DETECTED A HANGING GO COMMAND The gopls test runner has detected a hanging go command. In order to debug this, the output of ps and lsof/fstat is printed below. See golang/go#54461 for more details. Examples: 1) list sessions for the default daemon: $ gopls -remote=auto remote sessions or just $ gopls remote sessions 2) list sessions for a specific daemon: $ gopls -remote=localhost:8082 remote sessions (CallExpr (Symbol callName@(Or "(net/http.Header).Add" "(net/http.Header).Del" "(net/http.Header).Get" "(net/http.Header).Set")) arg@(CallExpr (Symbol "net/http.CanonicalHeaderKey") _):_) Examples: $ gopls help # main gopls help message $ gopls help remote # help on 'remote' command $ gopls help remote sessions # help on 'remote sessions' subcommand This file is within module %q, which is not included in your workspace. %s See the documentation for more information on setting up your workspace: https://github.com/golang/tools/blob/master/gopls/doc/workspace.md. (CallExpr (SelectorExpr recv (Ident "Write")) (CallExpr (ArrayType nil (Ident "byte")) (CallExpr fn@(Or (Symbol "fmt.Sprint") (Symbol "fmt.Sprintf") (Symbol "fmt.Sprintln")) args) ))Go telemetry helps us improve Go by periodically sending anonymous metrics and crash reports to the Go team. Learn more at [go.dev/doc/telemetry](https://go.dev/doc/telemetry). Would you like to enable Go telemetry? WARNING: this command is for internal-use only. By default, the command outputs a JSON-encoded golang.org/x/tools/gopls/internal/protocol/command.VulncheckResult message. Example: $ gopls vulncheck Strings must always be on a single line, and cannot span more than one line: # INVALID string = "Hello, world!" Instead use """ or ''' to split strings over multiple lines: string = """Hello, world!""" no go.mod file govulncheck only works with Go modules. Try navigating to your module directory. Otherwise, run go mod init to make your project a module. See https://go.dev/doc/modules/managing-dependencies for more information.The testing package dynamically sets \'b.N\' to improve the reliability of benchmarks and uses it in computations to determine the duration of a single operation. Benchmark code must not alter \'b.N\' as this would falsify results.check for locks erroneously passed by value Inadvertently copying a value containing a lock, such as sync.Mutex or sync.WaitGroup, may cause both copies to malfunction. Generally such values should be referred to through a pointer.Return values of the \'len\' and \'cap\' builtins cannot be negative. See https://golang.org/pkg/builtin/#len and https://golang.org/pkg/builtin/#cap. Example: if len(slice) < 0 { fmt.Println("unreachable code") } Example: show the definition of the identifier at syntax at offset %[1]v in this file (flag.FlagSet): $ gopls definition internal/cmd/definition.go:%[1]v:%[2]v $ gopls definition internal/cmd/definition.go:#%[3]v definition-flags: check for calls of reflect.DeepEqual on error values The deepequalerrors checker looks for calls of the form: reflect.DeepEqual(err1, err2) where err1 and err2 are errors. Using reflect.DeepEqual to compare errors is discouraged.This application uses version go1.%d of the source-processing packages but runs version go1.%d of 'go list'. It may fail to process source files that rely on newer language features. If so, rebuild the application using a newer version of Go. (CallExpr sel@(SelectorExpr recv (Ident name@(Or "Error" "Fatal" "Fatalln" "Log" "Panic" "Panicln" "Print" "Println" "Skip"))) [(CallExpr (Symbol "fmt.Sprintf") args)])Runs a vulnerability check on the Go workspace. The check is performed on a given package pattern within a specified directory. If no directory is provided, it defaults to the workspace root. If no pattern is provided, it defaults to "./...". (IfStmt (AssignStmt [(Ident "_") ok@(Object _)] _ [(TypeAssertExpr assert@(Object _) _)]) (Or (BinaryExpr ok "&&" (BinaryExpr assert "!=" (Builtin "nil"))) (BinaryExpr (BinaryExpr assert "!=" (Builtin "nil")) "&&" ok)) _ _)Using io.WriteString to write a slice of bytes, as in io.WriteString(w, string(b)) is both unnecessary and inefficient. Converting from \'[]byte\' to \'string\' has to allocate and copy the data, and we could simply use \'w.Write(b)\' instead.In an encoding function of the form \'Encode(dst, src)\', \'dst\' and \'src\' were found to reference the same memory. This can result in \'src\' bytes being overwritten before they are read, when the encoder writes more than one byte per \'src\' byte.Internal error: got %d unexpected diagnostics from analyzer %s. This analyzer was added only to fulfil the requirements of the requested set of analyzers, and it is not expected that such analyzers report diagnostics. Please report this in issue #60909.{{if and (eq .Kind "map") .StmtOK -}} {{$keysVar := (.VarName nil "keys")}}{{$keysVar}} := make([]{{.TypeName .KeyType}}, 0, len({{.X}})) {{$k := (.VarName .KeyType "k")}}for {{$k}} := range {{.X}} { {{$keysVar}} = append({{$keysVar}}, {{$k}}) } {{end}}