Skip to content

Commit

Permalink
Merge pull request #176 from Comcast/remove-v2-subdirectory
Browse files Browse the repository at this point in the history
Replace root module with v2, delete v2/
  • Loading branch information
laba2346 committed Feb 6, 2023
2 parents d2e00fd + 8dd489b commit 11cc503
Show file tree
Hide file tree
Showing 100 changed files with 46 additions and 14,094 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![GoDoc](https://godoc.org/github.com/Comcast/gots?status.svg)](https://godoc.org/github.com/Comcast/gots)
[![Go Reference](https://pkg.go.dev/badge/github.com/Comcast/gots/v2.svg)](https://pkg.go.dev/github.com/Comcast/gots/v2)
[![Build Status](https://travis-ci.org/Comcast/gots.svg?branch=master)](https://travis-ci.org/Comcast/gots)
[![Go Report Card](https://goreportcard.com/badge/github.com/Comcast/gots)](https://goreportcard.com/report/github.com/Comcast/gots)
[![Coverage Status](https://coveralls.io/repos/github/Comcast/gots/badge.svg?branch=master)](https://coveralls.io/github/Comcast/gots?branch=master)
Expand Down
10 changes: 5 additions & 5 deletions cli/parsefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ import (
"io"
"os"

"github.com/Comcast/gots/ebp"
"github.com/Comcast/gots/packet"
"github.com/Comcast/gots/packet/adaptationfield"
"github.com/Comcast/gots/psi"
"github.com/Comcast/gots/scte35"
"github.com/Comcast/gots/v2/ebp"
"github.com/Comcast/gots/v2/packet"
"github.com/Comcast/gots/v2/packet/adaptationfield"
"github.com/Comcast/gots/v2/psi"
"github.com/Comcast/gots/v2/scte35"
)

// main parses a ts file that is provided with the -f flag
Expand Down
2 changes: 1 addition & 1 deletion ebp/cablelabsebp.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"encoding/binary"
"time"

"github.com/Comcast/gots"
"github.com/Comcast/gots/v2"
)

// cableLabsEbp is an encoder boundary point
Expand Down
2 changes: 1 addition & 1 deletion ebp/comcastebp.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"encoding/binary"
"time"

"github.com/Comcast/gots"
"github.com/Comcast/gots/v2"
)

// cableLabsEbp is an encoder boundary point
Expand Down
2 changes: 1 addition & 1 deletion ebp/ebp.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"encoding/binary"
"time"

"github.com/Comcast/gots"
"github.com/Comcast/gots/v2"
)

// EBP tags
Expand Down
2 changes: 1 addition & 1 deletion ebp/ebp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"testing"
"time"

"github.com/Comcast/gots"
"github.com/Comcast/gots/v2"
)

var CableLabsEBPBytes = []byte{
Expand Down
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Deprecated: use github.com/Comcast/gots/v2 instead.
module github.com/Comcast/gots
module github.com/Comcast/gots/v2

go 1.18
2 changes: 1 addition & 1 deletion packet/accumulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ package packet
import (
"bytes"

"github.com/Comcast/gots"
"github.com/Comcast/gots/v2"
)

// Iotas to track the state of the accumulator
Expand Down
2 changes: 1 addition & 1 deletion packet/accumulator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"encoding/hex"
"testing"

"github.com/Comcast/gots"
"github.com/Comcast/gots/v2"
)

// PacketAccumulator is not thread safe
Expand Down
2 changes: 1 addition & 1 deletion packet/adaptationfield.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ SOFTWARE.
package packet

import (
"github.com/Comcast/gots"
"github.com/Comcast/gots/v2"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions packet/adaptationfield/adaptationfield.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package adaptationfield

import (
"github.com/Comcast/gots"
"github.com/Comcast/gots/packet"
"github.com/Comcast/gots/v2"
"github.com/Comcast/gots/v2/packet"
)

// Length returns the length of the adaptation field in bytes
Expand Down
2 changes: 1 addition & 1 deletion packet/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ SOFTWARE.
package packet

import (
"github.com/Comcast/gots"
"github.com/Comcast/gots/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion packet/io.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"encoding/binary"
"io"

"github.com/Comcast/gots"
"github.com/Comcast/gots/v2"
)

// Peeker wraps the Peek method.
Expand Down
2 changes: 1 addition & 1 deletion packet/modify.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ SOFTWARE.
package packet

import (
"github.com/Comcast/gots"
"github.com/Comcast/gots/v2"
)

// flags that are reserved and should not be used.
Expand Down
2 changes: 1 addition & 1 deletion packet/packet.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ SOFTWARE.
package packet

import (
"github.com/Comcast/gots"
"github.com/Comcast/gots/v2"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion packet/packetwriter.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ package packet
import (
"io"

"github.com/Comcast/gots"
"github.com/Comcast/gots/v2"
)

// PacketWriter is subject to all rules governing implementations of io.Writer
Expand Down
2 changes: 1 addition & 1 deletion pes/pes.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ SOFTWARE.

package pes

import "github.com/Comcast/gots/packet"
import "github.com/Comcast/gots/v2/packet"

// AlignedPUSI checks for a PUSI with aligned flag set and returns a bool
// indicating a match when true, as well as the bytes for the PES data
Expand Down
2 changes: 1 addition & 1 deletion pes/pesheader.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"errors"
"fmt"

"github.com/Comcast/gots"
"github.com/Comcast/gots/v2"
)

// stream_id possibilities
Expand Down
2 changes: 1 addition & 1 deletion pes/pesheader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"encoding/hex"
"testing"

"github.com/Comcast/gots/packet"
"github.com/Comcast/gots/v2/packet"
)

func parseHexString(h string) *packet.Packet {
Expand Down
4 changes: 2 additions & 2 deletions psi/pat.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import (
"errors"
"io"

"github.com/Comcast/gots"
"github.com/Comcast/gots/packet"
"github.com/Comcast/gots/v2"
"github.com/Comcast/gots/v2/packet"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions psi/pmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ import (
"fmt"
"io"

"github.com/Comcast/gots"
"github.com/Comcast/gots/packet"
"github.com/Comcast/gots/v2"
"github.com/Comcast/gots/v2/packet"
)

const PidNotFound int = 1<<16 - 1
Expand Down
4 changes: 2 additions & 2 deletions psi/pmt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ import (
"fmt"
"testing"

"github.com/Comcast/gots"
"github.com/Comcast/gots/packet"
"github.com/Comcast/gots/v2"
"github.com/Comcast/gots/v2/packet"
)

func parseHexString(h string) *packet.Packet {
Expand Down
2 changes: 1 addition & 1 deletion psi/psi.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ SOFTWARE.
package psi

import (
"github.com/Comcast/gots"
"github.com/Comcast/gots/v2"
)

// TableHeader struct represents operations available on all PSI
Expand Down
2 changes: 1 addition & 1 deletion scte35/descriptormodify.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ SOFTWARE.
package scte35

import (
"github.com/Comcast/gots"
"github.com/Comcast/gots/v2"
)

// SetUPIDType will set the type of the UPID
Expand Down
4 changes: 2 additions & 2 deletions scte35/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ SOFTWARE.
package scte35

import (
"github.com/Comcast/gots"
"github.com/Comcast/gots/psi"
"github.com/Comcast/gots/v2"
"github.com/Comcast/gots/v2/psi"
)

// SpliceCommandType is a type used to describe the types of splice commands.
Expand Down
4 changes: 2 additions & 2 deletions scte35/modify.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ SOFTWARE.
package scte35

import (
"github.com/Comcast/gots"
"github.com/Comcast/gots/psi"
"github.com/Comcast/gots/v2"
"github.com/Comcast/gots/v2/psi"
)

// CreateSCTE35 creates a default SCTE35 message and returns it.
Expand Down
4 changes: 2 additions & 2 deletions scte35/modify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ package scte35

import (
"bytes"
"github.com/Comcast/gots"
"github.com/Comcast/gots/psi"
"github.com/Comcast/gots/v2"
"github.com/Comcast/gots/v2/psi"
"testing"
)

Expand Down
4 changes: 2 additions & 2 deletions scte35/scte35.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import (
"encoding/binary"
"fmt"

"github.com/Comcast/gots"
"github.com/Comcast/gots/psi"
"github.com/Comcast/gots/v2"
"github.com/Comcast/gots/v2/psi"
)

// Descriptor tag types and identifiers - only segmentation descriptors are used for now
Expand Down
2 changes: 1 addition & 1 deletion scte35/scte35_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"strings"
"testing"

"github.com/Comcast/gots"
"github.com/Comcast/gots/v2"
)

var testScte = []byte{
Expand Down
2 changes: 1 addition & 1 deletion scte35/segmentationdescriptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"encoding/binary"
"strings"

"github.com/Comcast/gots"
"github.com/Comcast/gots/v2"
)

// upidSt is the struct used for creating a Multiple UPID (MID)
Expand Down
2 changes: 1 addition & 1 deletion scte35/splicecommand.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"bytes"
"encoding/binary"

"github.com/Comcast/gots"
"github.com/Comcast/gots/v2"
)

// timeSignal is a struct that represents a time signal splice command in SCTE35
Expand Down
2 changes: 1 addition & 1 deletion scte35/splicecommandmodify.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ SOFTWARE.
package scte35

import (
"github.com/Comcast/gots"
"github.com/Comcast/gots/v2"
)

// CreateSpliceInsertCommand will create a default SpliceInsertCommand.
Expand Down
2 changes: 1 addition & 1 deletion scte35/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ SOFTWARE.
package scte35

import (
"github.com/Comcast/gots"
"github.com/Comcast/gots/v2"
"strings"
)

Expand Down
2 changes: 1 addition & 1 deletion scte35/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"fmt"
"testing"

"github.com/Comcast/gots"
"github.com/Comcast/gots/v2"
)

// All signal data generated with scte_creator: https://github.comcast.com/mniebu200/scte_creator
Expand Down
74 changes: 0 additions & 74 deletions v2/CODE_OF_CONDUCT.md

This file was deleted.

0 comments on commit 11cc503

Please sign in to comment.