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
+1 -1
View File
@@ -1,4 +1,4 @@
package barnard // import "layeh.com/barnard"
package main
import (
"crypto/tls"
+1 -1
View File
@@ -1,4 +1,4 @@
package barnard // import "layeh.com/barnard"
package main
import (
"fmt"
+2
View File
@@ -0,0 +1,2 @@
// barnard is a terminal based client for the Mumble VoIP system.
package main // import "layeh.com/barnard"
+3 -4
View File
@@ -1,4 +1,4 @@
package main // import "layeh.com/barnard/cmd/barnard"
package main
import (
"crypto/tls"
@@ -6,7 +6,6 @@ import (
"fmt"
"os"
"layeh.com/barnard"
"layeh.com/barnard/uiterm"
"layeh.com/gumble/gumble"
_ "layeh.com/gumble/opus"
@@ -23,8 +22,8 @@ func main() {
flag.Parse()
// Initialize
b := barnard.Barnard{
Config: gumble.NewConfig(),
b := Barnard{
Config: gumble.NewConfig(),
Address: *server,
}
+1 -1
View File
@@ -1,4 +1,4 @@
package barnard // import "layeh.com/barnard"
package main
import (
"fmt"
+1 -1
View File
@@ -1,4 +1,4 @@
package barnard // import "layeh.com/barnard"
package main
import (
"layeh.com/barnard/uiterm"
+1 -1
View File
@@ -1,4 +1,4 @@
package uiterm // import "layeh.com/barnard/uiterm"
package uiterm
/*
* Source: https://godoc.org/github.com/nsf/termbox-go
+1
View File
@@ -0,0 +1 @@
package uiterm // import "layeh.com/barnard/uiterm"
+1 -1
View File
@@ -1,4 +1,4 @@
package uiterm // import "layeh.com/barnard/uiterm"
package uiterm
/*
* Source: https://godoc.org/github.com/nsf/termbox-go
+1 -1
View File
@@ -1,4 +1,4 @@
package uiterm // import "layeh.com/barnard/uiterm"
package uiterm
import (
"strings"
+1 -1
View File
@@ -1,4 +1,4 @@
package uiterm // import "layeh.com/barnard/uiterm"
package uiterm
import (
"strings"
+1 -1
View File
@@ -1,4 +1,4 @@
package uiterm // import "layeh.com/barnard/uiterm"
package uiterm
import (
"strings"
+1 -1
View File
@@ -1,4 +1,4 @@
package uiterm // import "layeh.com/barnard/uiterm"
package uiterm
import (
"strings"
+1 -1
View File
@@ -1,4 +1,4 @@
package uiterm // import "layeh.com/barnard/uiterm"
package uiterm
import (
"errors"
+1 -1
View File
@@ -1,4 +1,4 @@
package uiterm // import "layeh.com/barnard/uiterm"
package uiterm
type View interface {
uiInitialize(ui *Ui)