nexgb: rewrite import paths
This commit is contained in:
@@ -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("")
|
||||
|
||||
Reference in New Issue
Block a user