Merged in kortschak/av/gardening/goimports (pull request #18)

all: clean up imports
This commit is contained in:
kortschak 2018-05-30 07:32:40 +00:00 committed by Alan Noble
commit 51e2c5c4d6
10 changed files with 9 additions and 39 deletions

View File

@ -1,9 +1,10 @@
package main
import (
"bitbucket.org/ausocean/av/revid"
"fmt"
"time"
"bitbucket.org/ausocean/av/revid"
)
func main() {

View File

@ -27,11 +27,7 @@ LICENSE
package flv
import (
"bitbucket.org/ausocean/av/tools"
//"../tools"
"fmt"
)
import "bitbucket.org/ausocean/av/tools"
const (
headerLength = 72

View File

@ -27,10 +27,9 @@ LICENSE
package generator
import (
"bitbucket.org/ausocean/av/flv"
//"../flv"
_ "fmt"
"time"
"bitbucket.org/ausocean/av/flv"
)
const (

View File

@ -28,14 +28,7 @@ LICENSE
package mpegts
import (
"bitbucket.org/ausocean/av/tools"
//"../tools"
_ "errors"
//"fmt"
)
import "bitbucket.org/ausocean/av/tools"
const (
mpegTsSize = 188

View File

@ -28,10 +28,7 @@ LICENSE
package mpegts
import (
_ "fmt"
"testing"
)
import "testing"
// Just ensure that we can create a byte slice with a mpegts packet correctly
func TestMpegTsToByteSlice(t *testing.T) {

View File

@ -27,11 +27,9 @@ LICENSE
package parser
import (
"bitbucket.org/ausocean/av/itut"
//"../itut"
_ "fmt"
"time"
"bitbucket.org/ausocean/av/itut"
)
const (

View File

@ -27,11 +27,6 @@ LICENSE
package parser
import (
//"bitbucket.org/ausocean/av/itut"
_ "fmt"
)
const (
frameStartCode = 0xD8
)

View File

@ -28,8 +28,6 @@ LICENSE
package parser
import (
//"bitbucket.org/ausocean/av/itut"
_ "fmt"
"log"
"sync"
)

View File

@ -29,11 +29,9 @@ package revid
import (
"errors"
_ "fmt"
"strconv"
"bitbucket.org/ausocean/utils/smartlogger"
//"../../utils/smartlogger"
)
// Config provides parameters relevant to a revid instance. A new config must

View File

@ -28,11 +28,6 @@ LICENSE
package tools
import (
_ "fmt"
_ "os"
)
func BoolToByte(in bool) (out byte) {
if in {
out = 1