Use the binary like so:
go-structs {{directory}}Example
go-structs /code/go-structs/test_dirOutput to file:
go-structs /code/go-structs/test_dir > /tmp/output.txtThe program will only report on files that contain go structs. The output will print a filename followed by a newlin-delimited list of the structs in that file. Example output:
/code/go-structs/test_dir/file1.go
type Struct1 struct {
Field1 string
Field2 int
}
type Struct2 struct {
Field1 string
Field2 int
}