acroca/go-symbols

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

22

stars

11

commits

Go

primary language

Jun 8, 2024

updated

README

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"`
}

Contributors

kanocz

4 commits

acroca

3 commits

newhook

3 commits

dt

1 commits

acroca/go-symbols

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

22

stars

11

commits

Go

primary language

Jun 8, 2024

updated

README

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"`
}

Contributors

kanocz

4 commits

acroca

3 commits

newhook

3 commits

dt

1 commits

Languages

Go

100.0%