nexgb: rewrite import paths

This commit is contained in:
2018-09-08 19:57:27 +02:00
parent 48fb710f35
commit 7aa2601e66
35 changed files with 78 additions and 78 deletions

View File

@@ -79,10 +79,10 @@ func (c *Context) Morph(xmlBytes []byte) {
// Write imports. We always need to import at least xgb.
// We also need to import xproto if it's an extension.
c.Putln("import (")
c.Putln("\"github.com/BurntSushi/xgb\"")
c.Putln("xgb \"janouch.name/haven/nexgb\"")
c.Putln("")
if c.protocol.isExt() {
c.Putln("\"github.com/BurntSushi/xgb/xproto\"")
c.Putln("\"janouch.name/haven/nexgb/xproto\"")
}
sort.Sort(Protocols(c.protocol.Imports))
@@ -91,7 +91,7 @@ func (c *Context) Morph(xmlBytes []byte) {
if imp.Name == "xproto" {
continue
}
c.Putln("\"github.com/BurntSushi/xgb/%s\"", imp.Name)
c.Putln("\"janouch.name/haven/nexgb/%s\"", imp.Name)
}
c.Putln(")")
c.Putln("")