Skip to content

A utility for extracting a JSON representation of the package symbols from a go source tree.

License

Notifications You must be signed in to change notification settings

acroca/go-symbols

This branch is 8 commits ahead of newhook/go-symbols:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b3af8b1 · Jan 14, 2019

History

11 Commits
Dec 3, 2015
Dec 12, 2015
Jan 14, 2019

Repository files navigation

Go Symbols

A utility for extracting a JSON representation of the package symbols from a go source tree.

If a directory named src is under the directory given that directory will be walked for source code, otherwise the entire tree will be walked.

Installing

go get -u github.com/newhook/go-symbols

Using

> go-symbols /Users/matthew/go foo

Schema

go
type symbol struct {
	Name      string `json:"name"`
	Kind      string `json:"kind"`
	Package   string `json:"package"`
	Path      string `json:"path"`
	Line      int    `json:"line"`
	Character int    `json:"character"`
}

About

A utility for extracting a JSON representation of the package symbols from a go source tree.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%