gooutline

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package gooutline supplies declaration boundaries from the host Go grammar.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diagnostic

type Diagnostic struct {
	Offset int `json:"offset"`
}

type Document

type Document struct {
	Entries []Entry      `json:"entries"`
	Errors  []Diagnostic `json:"errors"`
}

func Parse

func Parse(source string) Document

Parse returns byte offsets into source. Parsing never resolves imports or evaluates code; syntax errors invalidate only declarations they intersect.

type Entry

type Entry struct {
	Kind     string `json:"kind"`
	Name     string `json:"name"`
	Receiver string `json:"receiver,omitempty"`
	From     int    `json:"from"`
	To       int    `json:"to"`
	NameFrom int    `json:"name_from"`
	NameTo   int    `json:"name_to"`
	Complete bool   `json:"complete"`
}

Jump to

Keyboard shortcuts

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