aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xgbgen/context.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-10 20:06:22 -0400
committerAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-10 20:06:22 -0400
commita3363755cdfdafdf02d5a772bd47a462e99af057 (patch)
tree2ac76ade9003d49447edd57ea56d6d7d299d7bc4 /nexgb/xgbgen/context.go
parent0c50dc6241fa21712e041cfa2bfb9db4ccaef10a (diff)
downloadhaven-a3363755cdfdafdf02d5a772bd47a462e99af057.tar.gz
haven-a3363755cdfdafdf02d5a772bd47a462e99af057.tar.xz
haven-a3363755cdfdafdf02d5a772bd47a462e99af057.zip
adding package header comments
Diffstat (limited to 'nexgb/xgbgen/context.go')
-rw-r--r--nexgb/xgbgen/context.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/nexgb/xgbgen/context.go b/nexgb/xgbgen/context.go
index 67699cf..c40313f 100644
--- a/nexgb/xgbgen/context.go
+++ b/nexgb/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("/*")