golang.org/x/tools@v0.21.1-0.20240520172518-788d39e776b1/internal/jsonrpc2/jsonrpc2.go (about) 1 // Copyright 2018 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // Package jsonrpc2 is a minimal implementation of the JSON RPC 2 spec. 6 // https://www.jsonrpc.org/specification 7 // It is intended to be compatible with other implementations at the wire level. 8 package jsonrpc2 9 10 const ( 11 // ErrIdleTimeout is returned when serving timed out waiting for new connections. 12 ErrIdleTimeout = constError("timed out waiting for new connections") 13 ) 14 15 type constError string 16 17 func (e constError) Error() string { return string(e) }