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 package main
import ( import (
"bitbucket.org/ausocean/av/revid"
"fmt" "fmt"
"time" "time"
"bitbucket.org/ausocean/av/revid"
) )
func main() { func main() {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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