summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorKurt <kurt.w.jung@gmail.com>2019-05-18 08:08:21 -0400
committerKurt <kurt.w.jung@gmail.com>2019-05-18 08:08:21 -0400
commit5f4e2f65402b9aa611f93b2fa14ea69bf7b26d2d (patch)
tree0866c2a0b794887b4aee16aa2be2a279917fe14e /doc
parente4895cb2e4a6b49e241d7668740c1a557ef4b8c5 (diff)
Generalize awk script that produces doc.go
Diffstat (limited to 'doc')
-rw-r--r--doc/go.awk12
1 files changed, 3 insertions, 9 deletions
diff --git a/doc/go.awk b/doc/go.awk
index a325362..bcd4a7c 100644
--- a/doc/go.awk
+++ b/doc/go.awk
@@ -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 }