diff --git a/main.go b/main.go index c144c6b..f275195 100644 --- a/main.go +++ b/main.go @@ -11,10 +11,9 @@ import ( ) type heading struct { - text string - level int - line int - parent *heading + text string + level int + line int } func is_heading(line string) bool { @@ -47,7 +46,7 @@ func parse_file(file_name string) []heading { for index, value := range file_lines { if is_heading(value) { headings = append( - headings, heading{value, get_heading_level(value), (index + 1), nil}) + headings, heading{value, get_heading_level(value), (index + 1)}) } } return headings