diff options
| author | Andrew Gallant <[email protected]> | 2013-08-11 20:45:36 -0400 |
|---|---|---|
| committer | Andrew Gallant <[email protected]> | 2013-08-11 20:45:36 -0400 |
| commit | 8bc7a097c3aeddc1832d47cd74a9a365ab1f86ad (patch) | |
| tree | cc6bf8f99d20ac2f890caf62a793afdf2e26b052 /xgbgen/context.go | |
| parent | c656fd0b737b591871029286bc3921b33210da82 (diff) | |
Don't needlessly change source files every time.
Diffstat (limited to 'xgbgen/context.go')
| -rw-r--r-- | xgbgen/context.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/xgbgen/context.go b/xgbgen/context.go index 697413e..af0f598 100644 --- a/xgbgen/context.go +++ b/xgbgen/context.go @@ -6,7 +6,6 @@ import ( "fmt" "log" "sort" - "time" ) // Context represents the protocol we're converting to Go, and a writer @@ -56,11 +55,8 @@ func (c *Context) Morph(xmlBytes []byte) { c.protocol.PkgName(), c.protocol.ExtXName) c.Putln("package %s", c.protocol.PkgName()) c.Putln("") - c.Putln("/*") - c.Putln("\tThis file was generated by %s.xml on %s.", - c.protocol.Name, time.Now().Format("Jan 2 2006 3:04:05pm MST")) - c.Putln("\tThis file is automatically generated. Edit at your peril!") - c.Putln("*/") + c.Putln("// This file is automatically generated from %s.xml. "+ + "Edit at your peril!", c.protocol.Name) c.Putln("") // Write imports. We always need to import at least xgb. |
