outline

package
v0.0.0-...-310ba95 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package outline is adapted from https://github.com/lukehoban/go-outline

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decl

type Decl struct {
	Label        string    `json:"label"`
	Type         string    `json:"type"`
	ReceiverType string    `json:"receiverType,omitempty"`
	Start        token.Pos `json:"start"`
	End          token.Pos `json:"end"`
	Children     []Decl    `json:"children,omitempty"`
}

Decl represents a top level declaration of the source code file

func ParseFile

func ParseFile(srcPath string) ([]Decl, error)

ParseFile will parse a Go source code file for declarations

Jump to

Keyboard shortcuts

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