move barnard main package to package root

There's only a single executable, so this makes things cleaner
This commit is contained in:
Tim Cooper
2018-05-08 18:00:30 -03:00
parent 429825587b
commit 4b86035511
15 changed files with 18 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
package barnard // import "layeh.com/barnard" package main
import ( import (
"crypto/tls" "crypto/tls"

View File

@@ -1,4 +1,4 @@
package barnard // import "layeh.com/barnard" package main
import ( import (
"fmt" "fmt"

2
doc.go Normal file
View File

@@ -0,0 +1,2 @@
// barnard is a terminal based client for the Mumble VoIP system.
package main // import "layeh.com/barnard"

View File

@@ -1,4 +1,4 @@
package main // import "layeh.com/barnard/cmd/barnard" package main
import ( import (
"crypto/tls" "crypto/tls"
@@ -6,7 +6,6 @@ import (
"fmt" "fmt"
"os" "os"
"layeh.com/barnard"
"layeh.com/barnard/uiterm" "layeh.com/barnard/uiterm"
"layeh.com/gumble/gumble" "layeh.com/gumble/gumble"
_ "layeh.com/gumble/opus" _ "layeh.com/gumble/opus"
@@ -23,8 +22,8 @@ func main() {
flag.Parse() flag.Parse()
// Initialize // Initialize
b := barnard.Barnard{ b := Barnard{
Config: gumble.NewConfig(), Config: gumble.NewConfig(),
Address: *server, Address: *server,
} }

2
ui.go
View File

@@ -1,4 +1,4 @@
package barnard // import "layeh.com/barnard" package main
import ( import (
"fmt" "fmt"

View File

@@ -1,4 +1,4 @@
package barnard // import "layeh.com/barnard" package main
import ( import (
"layeh.com/barnard/uiterm" "layeh.com/barnard/uiterm"

View File

@@ -1,4 +1,4 @@
package uiterm // import "layeh.com/barnard/uiterm" package uiterm
/* /*
* Source: https://godoc.org/github.com/nsf/termbox-go * Source: https://godoc.org/github.com/nsf/termbox-go

1
uiterm/doc.go Normal file
View File

@@ -0,0 +1 @@
package uiterm // import "layeh.com/barnard/uiterm"

View File

@@ -1,4 +1,4 @@
package uiterm // import "layeh.com/barnard/uiterm" package uiterm
/* /*
* Source: https://godoc.org/github.com/nsf/termbox-go * Source: https://godoc.org/github.com/nsf/termbox-go

View File

@@ -1,4 +1,4 @@
package uiterm // import "layeh.com/barnard/uiterm" package uiterm
import ( import (
"strings" "strings"

View File

@@ -1,4 +1,4 @@
package uiterm // import "layeh.com/barnard/uiterm" package uiterm
import ( import (
"strings" "strings"

View File

@@ -1,4 +1,4 @@
package uiterm // import "layeh.com/barnard/uiterm" package uiterm
import ( import (
"strings" "strings"

View File

@@ -1,4 +1,4 @@
package uiterm // import "layeh.com/barnard/uiterm" package uiterm
import ( import (
"strings" "strings"

View File

@@ -1,4 +1,4 @@
package uiterm // import "layeh.com/barnard/uiterm" package uiterm
import ( import (
"errors" "errors"

View File

@@ -1,4 +1,4 @@
package uiterm // import "layeh.com/barnard/uiterm" package uiterm
type View interface { type View interface {
uiInitialize(ui *Ui) uiInitialize(ui *Ui)