core

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityRef

type EntityRef struct {
	Pkg  string `json:"pkg,omitempty"`
	Name string `json:"name,omitempty"`
	Meta Meta   `json:"meta"`
}

EntityRef is a reference to an entity in the source code

func (EntityRef) String

func (e EntityRef) String() string

type Location

type Location struct {
	ModRef   ModuleRef `json:"module"`
	Package  string    `json:"package,omitempty"`
	Filename string    `json:"filename,omitempty"`
}

func (Location) String

func (l Location) String() string

type Meta

type Meta struct {
	Location Location `json:"location"`
	Text     string   `json:"text,omitempty"`
	Start    Position `json:"start"`
	Stop     Position `json:"stop"`
}

type ModuleRef

type ModuleRef struct {
	Path    string `json:"path,omitempty"`
	Version string `json:"version,omitempty"`
}

func (ModuleRef) String

func (m ModuleRef) String() string

type Position

type Position struct {
	Line   int `json:"line,omitempty"`
	Column int `json:"column,omitempty"`
}

Position contains line and column numbers

func (Position) String

func (p Position) String() string

Jump to

Keyboard shortcuts

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