summaryrefslogtreecommitdiff
path: root/doc/go.awk
diff options
context:
space:
mode:
Diffstat (limited to 'doc/go.awk')
-rw-r--r--doc/go.awk19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/go.awk b/doc/go.awk
new file mode 100644
index 0000000..a325362
--- /dev/null
+++ b/doc/go.awk
@@ -0,0 +1,19 @@
+BEGIN {
+ show = 0
+ print "/*"
+}
+
+/^\-/ {
+ trim = 1
+ print ""
+}
+
+/^Package/ { show = 1 }
+
+!NF { trim = 0 }
+
+trim { sub("^ +", "", $0) }
+
+show { print $0 }
+
+END { print "*/\npackage gofpdf" }