summaryrefslogtreecommitdiff
path: root/xgbgen/context.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <[email protected]>2012-05-10 20:06:22 -0400
committerAndrew Gallant (Ocelot) <[email protected]>2012-05-10 20:06:22 -0400
commit3db12a4549548416b141b2b29de42137a5b39aad (patch)
tree393c25ed6fae2fc678094035102f05738b0d3451 /xgbgen/context.go
parentb618b2ea09167306cfe29b6966faf184bc893c2d (diff)
adding package header comments
Diffstat (limited to 'xgbgen/context.go')
-rw-r--r--xgbgen/context.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/xgbgen/context.go b/xgbgen/context.go
index 67699cf..c40313f 100644
--- a/xgbgen/context.go
+++ b/xgbgen/context.go
@@ -51,6 +51,8 @@ func (c *Context) Morph(xmlBytes []byte) {
c.protocol = parsedXml.Translate(nil)
// Start with Go header.
+ c.Putln("// Package %s is the X client API for the %s extension.",
+ c.protocol.PkgName(), c.protocol.ExtXName)
c.Putln("package %s", c.protocol.PkgName())
c.Putln("")
c.Putln("/*")