type Kind … const UnknownKind … const Go … const Mod … const Sum … const Tmpl … const Work … func (k Kind) String() string { … } // KindForLang returns the gopls file [Kind] associated with the given LSP // LanguageKind string from protocol.TextDocumentItem.LanguageID, // or UnknownKind if the language is not one recognized by gopls. func KindForLang(langID protocol.LanguageKind) Kind { … }