github.com/v2fly/tools@v0.100.0/internal/lsp/protocol/doc.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 protocol contains the structs that map directly to the wire format 6 // of the "Language Server Protocol". 7 // 8 // It is a literal transcription, with unmodified comments, and only the changes 9 // required to make it go code. 10 // Names are uppercased to export them. 11 // All fields have JSON tags added to correct the names. 12 // Fields marked with a ? are also marked as "omitempty" 13 // Fields that are "|| null" are made pointers 14 // Fields that are string or number are left as string 15 // Fields that are type "number" are made float64 16 package protocol