diff options
author | Kurt <kurt.w.jung@gmail.com> | 2019-05-18 08:08:21 -0400 |
---|---|---|
committer | Kurt <kurt.w.jung@gmail.com> | 2019-05-18 08:08:21 -0400 |
commit | 5f4e2f65402b9aa611f93b2fa14ea69bf7b26d2d (patch) | |
tree | 0866c2a0b794887b4aee16aa2be2a279917fe14e /doc | |
parent | e4895cb2e4a6b49e241d7668740c1a557ef4b8c5 (diff) |
Generalize awk script that produces doc.go
Diffstat (limited to 'doc')
-rw-r--r-- | doc/go.awk | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -1,12 +1,6 @@ -BEGIN { - show = 0 - print "/*" -} +BEGIN { show = 0 ; print "/*" } -/^\-/ { - trim = 1 - print "" -} +/^\-/ { trim = 1 ; print "" } /^Package/ { show = 1 } @@ -16,4 +10,4 @@ trim { sub("^ +", "", $0) } show { print $0 } -END { print "*/\npackage gofpdf" } +END { print "*/\npackage " package_name } |