server

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2024 License: EUPL-1.2 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

Types

type Diagnostic

type Diagnostic struct {
	Range              Range                `json:"range"`
	Severity           int                  `json:"severity,omitempty"`
	Code               *string              `json:"code,omitempty"`
	Source             *string              `json:"source,omitempty"`
	Message            *string              `json:"message,omitempty"`
	RelatedInformation []RelatedInformation `json:"relatedInformation,omitempty"`
}

type Diagnostics

type Diagnostics struct {
	URI         documentURI  `json:"uri"`
	Diagnostics []Diagnostic `json:"diagnostics"`
	Version     int          `json:"version"`
}

type Position

type Position struct {
	Line      int `json:"line"`
	Character int `json:"character"`
}

type Range

type Range struct {
	Start Position `json:"start"`
	End   Position `json:"end"`
}

type RelatedInformation

type RelatedInformation struct {
	Location Position `json:"location"`
	Message  string   `json:"message"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL