Skip to content

Commit 11cc503

Browse files
authored
Merge pull request #176 from Comcast/remove-v2-subdirectory
Replace root module with v2, delete v2/
2 parents d2e00fd + 8dd489b commit 11cc503

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+46
-14094
lines changed

Readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![GoDoc](https://godoc.org/github.com/Comcast/gots?status.svg)](https://godoc.org/github.com/Comcast/gots)
1+
[![Go Reference](https://pkg.go.dev/badge/github.com/Comcast/gots/v2.svg)](https://pkg.go.dev/github.com/Comcast/gots/v2)
22
[![Build Status](https://travis-ci.org/Comcast/gots.svg?branch=master)](https://travis-ci.org/Comcast/gots)
33
[![Go Report Card](https://goreportcard.com/badge/github.com/Comcast/gots)](https://goreportcard.com/report/github.com/Comcast/gots)
44
[![Coverage Status](https://coveralls.io/repos/github/Comcast/gots/badge.svg?branch=master)](https://coveralls.io/github/Comcast/gots?branch=master)

cli/parsefile.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ import (
3232
"io"
3333
"os"
3434

35-
"github.com/Comcast/gots/ebp"
36-
"github.com/Comcast/gots/packet"
37-
"github.com/Comcast/gots/packet/adaptationfield"
38-
"github.com/Comcast/gots/psi"
39-
"github.com/Comcast/gots/scte35"
35+
"github.com/Comcast/gots/v2/ebp"
36+
"github.com/Comcast/gots/v2/packet"
37+
"github.com/Comcast/gots/v2/packet/adaptationfield"
38+
"github.com/Comcast/gots/v2/psi"
39+
"github.com/Comcast/gots/v2/scte35"
4040
)
4141

4242
// main parses a ts file that is provided with the -f flag

ebp/cablelabsebp.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
"encoding/binary"
3030
"time"
3131

32-
"github.com/Comcast/gots"
32+
"github.com/Comcast/gots/v2"
3333
)
3434

3535
// cableLabsEbp is an encoder boundary point

ebp/comcastebp.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
"encoding/binary"
3030
"time"
3131

32-
"github.com/Comcast/gots"
32+
"github.com/Comcast/gots/v2"
3333
)
3434

3535
// cableLabsEbp is an encoder boundary point

ebp/ebp.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
"encoding/binary"
2929
"time"
3030

31-
"github.com/Comcast/gots"
31+
"github.com/Comcast/gots/v2"
3232
)
3333

3434
// EBP tags

ebp/ebp_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"testing"
2828
"time"
2929

30-
"github.com/Comcast/gots"
30+
"github.com/Comcast/gots/v2"
3131
)
3232

3333
var CableLabsEBPBytes = []byte{

go.mod

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Deprecated: use github.com/Comcast/gots/v2 instead.
2-
module github.com/Comcast/gots
1+
module github.com/Comcast/gots/v2
32

43
go 1.18

packet/accumulator.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ package packet
2727
import (
2828
"bytes"
2929

30-
"github.com/Comcast/gots"
30+
"github.com/Comcast/gots/v2"
3131
)
3232

3333
// Iotas to track the state of the accumulator

packet/accumulator_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
"encoding/hex"
2929
"testing"
3030

31-
"github.com/Comcast/gots"
31+
"github.com/Comcast/gots/v2"
3232
)
3333

3434
// PacketAccumulator is not thread safe

packet/adaptationfield.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ SOFTWARE.
2525
package packet
2626

2727
import (
28-
"github.com/Comcast/gots"
28+
"github.com/Comcast/gots/v2"
2929
)
3030

3131
const (

packet/adaptationfield/adaptationfield.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package adaptationfield
22

33
import (
4-
"github.com/Comcast/gots"
5-
"github.com/Comcast/gots/packet"
4+
"github.com/Comcast/gots/v2"
5+
"github.com/Comcast/gots/v2/packet"
66
)
77

88
// Length returns the length of the adaptation field in bytes

packet/create.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ SOFTWARE.
2525
package packet
2626

2727
import (
28-
"github.com/Comcast/gots"
28+
"github.com/Comcast/gots/v2"
2929
)
3030

3131
var (

packet/io.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
"encoding/binary"
2929
"io"
3030

31-
"github.com/Comcast/gots"
31+
"github.com/Comcast/gots/v2"
3232
)
3333

3434
// Peeker wraps the Peek method.

packet/modify.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ SOFTWARE.
2525
package packet
2626

2727
import (
28-
"github.com/Comcast/gots"
28+
"github.com/Comcast/gots/v2"
2929
)
3030

3131
// flags that are reserved and should not be used.

packet/packet.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ SOFTWARE.
2525
package packet
2626

2727
import (
28-
"github.com/Comcast/gots"
28+
"github.com/Comcast/gots/v2"
2929
)
3030

3131
const (

packet/packetwriter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ package packet
2727
import (
2828
"io"
2929

30-
"github.com/Comcast/gots"
30+
"github.com/Comcast/gots/v2"
3131
)
3232

3333
// PacketWriter is subject to all rules governing implementations of io.Writer

pes/pes.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ SOFTWARE.
2424

2525
package pes
2626

27-
import "github.com/Comcast/gots/packet"
27+
import "github.com/Comcast/gots/v2/packet"
2828

2929
// AlignedPUSI checks for a PUSI with aligned flag set and returns a bool
3030
// indicating a match when true, as well as the bytes for the PES data

pes/pesheader.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
"errors"
2929
"fmt"
3030

31-
"github.com/Comcast/gots"
31+
"github.com/Comcast/gots/v2"
3232
)
3333

3434
// stream_id possibilities

pes/pesheader_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"encoding/hex"
2828
"testing"
2929

30-
"github.com/Comcast/gots/packet"
30+
"github.com/Comcast/gots/v2/packet"
3131
)
3232

3333
func parseHexString(h string) *packet.Packet {

psi/pat.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ import (
2828
"errors"
2929
"io"
3030

31-
"github.com/Comcast/gots"
32-
"github.com/Comcast/gots/packet"
31+
"github.com/Comcast/gots/v2"
32+
"github.com/Comcast/gots/v2/packet"
3333
)
3434

3535
const (

psi/pmt.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ import (
3030
"fmt"
3131
"io"
3232

33-
"github.com/Comcast/gots"
34-
"github.com/Comcast/gots/packet"
33+
"github.com/Comcast/gots/v2"
34+
"github.com/Comcast/gots/v2/packet"
3535
)
3636

3737
const PidNotFound int = 1<<16 - 1

psi/pmt_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ import (
3030
"fmt"
3131
"testing"
3232

33-
"github.com/Comcast/gots"
34-
"github.com/Comcast/gots/packet"
33+
"github.com/Comcast/gots/v2"
34+
"github.com/Comcast/gots/v2/packet"
3535
)
3636

3737
func parseHexString(h string) *packet.Packet {

psi/psi.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ SOFTWARE.
2525
package psi
2626

2727
import (
28-
"github.com/Comcast/gots"
28+
"github.com/Comcast/gots/v2"
2929
)
3030

3131
// TableHeader struct represents operations available on all PSI

scte35/descriptormodify.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ SOFTWARE.
2525
package scte35
2626

2727
import (
28-
"github.com/Comcast/gots"
28+
"github.com/Comcast/gots/v2"
2929
)
3030

3131
// SetUPIDType will set the type of the UPID

scte35/doc.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ SOFTWARE.
2626
package scte35
2727

2828
import (
29-
"github.com/Comcast/gots"
30-
"github.com/Comcast/gots/psi"
29+
"github.com/Comcast/gots/v2"
30+
"github.com/Comcast/gots/v2/psi"
3131
)
3232

3333
// SpliceCommandType is a type used to describe the types of splice commands.

scte35/modify.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ SOFTWARE.
2525
package scte35
2626

2727
import (
28-
"github.com/Comcast/gots"
29-
"github.com/Comcast/gots/psi"
28+
"github.com/Comcast/gots/v2"
29+
"github.com/Comcast/gots/v2/psi"
3030
)
3131

3232
// CreateSCTE35 creates a default SCTE35 message and returns it.

scte35/modify_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ package scte35
2626

2727
import (
2828
"bytes"
29-
"github.com/Comcast/gots"
30-
"github.com/Comcast/gots/psi"
29+
"github.com/Comcast/gots/v2"
30+
"github.com/Comcast/gots/v2/psi"
3131
"testing"
3232
)
3333

scte35/scte35.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ import (
2929
"encoding/binary"
3030
"fmt"
3131

32-
"github.com/Comcast/gots"
33-
"github.com/Comcast/gots/psi"
32+
"github.com/Comcast/gots/v2"
33+
"github.com/Comcast/gots/v2/psi"
3434
)
3535

3636
// Descriptor tag types and identifiers - only segmentation descriptors are used for now

scte35/scte35_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
"strings"
3131
"testing"
3232

33-
"github.com/Comcast/gots"
33+
"github.com/Comcast/gots/v2"
3434
)
3535

3636
var testScte = []byte{

scte35/segmentationdescriptor.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
"encoding/binary"
3030
"strings"
3131

32-
"github.com/Comcast/gots"
32+
"github.com/Comcast/gots/v2"
3333
)
3434

3535
// upidSt is the struct used for creating a Multiple UPID (MID)

scte35/splicecommand.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
"bytes"
2929
"encoding/binary"
3030

31-
"github.com/Comcast/gots"
31+
"github.com/Comcast/gots/v2"
3232
)
3333

3434
// timeSignal is a struct that represents a time signal splice command in SCTE35

scte35/splicecommandmodify.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ SOFTWARE.
2525
package scte35
2626

2727
import (
28-
"github.com/Comcast/gots"
28+
"github.com/Comcast/gots/v2"
2929
)
3030

3131
// CreateSpliceInsertCommand will create a default SpliceInsertCommand.

scte35/state.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ SOFTWARE.
2525
package scte35
2626

2727
import (
28-
"github.com/Comcast/gots"
28+
"github.com/Comcast/gots/v2"
2929
"strings"
3030
)
3131

scte35/state_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
"fmt"
2929
"testing"
3030

31-
"github.com/Comcast/gots"
31+
"github.com/Comcast/gots/v2"
3232
)
3333

3434
// All signal data generated with scte_creator: https://github.comcast.com/mniebu200/scte_creator

v2/CODE_OF_CONDUCT.md

-74
This file was deleted.

0 commit comments

Comments
 (0)