diff options
author | Andrew Gallant <jamslam@gmail.com> | 2013-08-11 20:45:36 -0400 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2018-09-08 16:49:18 +0200 |
commit | b06a8ca97625c1134449c3af65d9ac3fb251a613 (patch) | |
tree | 94b3ecccd314f1e982be65526a79e609dba5973c /nexgb/xgbgen | |
parent | 0685fb57e14104ee4ad9f70ec94f787a9a22c028 (diff) | |
download | haven-b06a8ca97625c1134449c3af65d9ac3fb251a613.tar.gz haven-b06a8ca97625c1134449c3af65d9ac3fb251a613.tar.xz haven-b06a8ca97625c1134449c3af65d9ac3fb251a613.zip |
Don't needlessly change source files every time.
Diffstat (limited to 'nexgb/xgbgen')
-rw-r--r-- | nexgb/xgbgen/context.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/nexgb/xgbgen/context.go b/nexgb/xgbgen/context.go index 697413e..af0f598 100644 --- a/nexgb/xgbgen/context.go +++ b/nexgb/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. |