golang.org/x/tools/gopls@v0.15.3/internal/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 //go:generate go run ./generate 6 7 // Package protocol contains the structs that map directly to the 8 // request and response messages of the Language Server Protocol. 9 // 10 // It is a literal transcription, with unmodified comments, and only the changes 11 // required to make it go code. 12 // Names are uppercased to export them. 13 // All fields have JSON tags added to correct the names. 14 // Fields marked with a ? are also marked as "omitempty" 15 // Fields that are "|| null" are made pointers 16 // Fields that are string or number are left as string 17 // Fields that are type "number" are made float64 18 package protocol