go-outline

command module
v0.0.0-...-a2c622c Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2016 License: MIT Imports: 7 Imported by: 0

README

Go Outline

Simple utility for extracting a JSON representation of the declarations in a Go source file.

Installing

go get -u github.com/lukehoban/go-outline

Using

> go-outline -f file.go
[{"label":"proc","type":"package",<...>}]
Schema
type Declaration struct {
	Label       string          `json:"label"`
	Type        string          `json:"type"`
	Start       token.Pos       `json:"start"`
	End         token.Pos       `json:"end"`
	Children    []Declaration   `json:"children,omitempty"`
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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