summaryrefslogtreecommitdiff
path: root/doc/go.awk
blob: bcd4a7c081b338fc77340d7009d753231bc95256 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
BEGIN { show = 0 ; print "/*" }

/^\-/ { trim = 1 ; print "" }

/^Package/ { show = 1 }

!NF { trim = 0 }

trim { sub("^ +", "", $0) }

show { print $0 }

END { print "*/\npackage " package_name }