adding package header comments

This commit is contained in:
Andrew Gallant (Ocelot)
2012-05-10 20:06:22 -04:00
parent 0c50dc6241
commit a3363755cd
29 changed files with 228 additions and 198 deletions

View File

@@ -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("/*")