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 (
"crypto/tls"

View File

@@ -1,4 +1,4 @@
package barnard // import "layeh.com/barnard"
package main
import (
"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 (
"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,
}

2
ui.go
View File

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

View File

@@ -1,4 +1,4 @@
package barnard // import "layeh.com/barnard"
package main
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

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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