Skip to content

Commit

Permalink
migrate package to new domain
Browse files Browse the repository at this point in the history
  • Loading branch information
thatmattlove committed Aug 2, 2024
1 parent ea6cc50 commit 28d7166
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

MAC Address & Prefix Utility for Go

[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/thatmattlove/go-macaddr/test.yml?style=for-the-badge)](https://github.com/thatmattlove/go-macaddr/actions/workflows/test.yml) [![Docs](https://img.shields.io/badge/godoc-reference-007D9C.svg?style=for-the-badge)](https://pkg.go.dev/github.com/thatmattlove/go-macaddr) [![Code Coverage](https://img.shields.io/codecov/c/github/thatmattlove/go-macaddr?style=for-the-badge)](https://codecov.io/gh/thatmattlove/go-macaddr) [![Go Report Card](https://goreportcard.com/badge/github.com/thatmattlove/go-macaddr?style=for-the-badge)](https://goreportcard.com/report/github.com/thatmattlove/go-macaddr)
[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/thatmattlove/go-macaddr/test.yml?style=for-the-badge)](https://github.com/thatmattlove/go-macaddr/actions/workflows/test.yml) [![Docs](https://img.shields.io/badge/godoc-reference-007D9C.svg?style=for-the-badge)](https://pkg.go.dev/go.mdl.wtf/go-macaddr) [![Code Coverage](https://img.shields.io/codecov/c/github/thatmattlove/go-macaddr?style=for-the-badge)](https://codecov.io/gh/thatmattlove/go-macaddr) [![Go Report Card](https://goreportcard.com/badge/github.com/thatmattlove/go-macaddr?style=for-the-badge)](https://goreportcard.com/report/github.com/thatmattlove/go-macaddr)

</div>

## Installation

```
go get -d github.com/thatmattlove/go-macaddr
go get -d go.mdl.wtf/go-macaddr/go-macaddr
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/thatmattlove/go-macaddr
module go.mdl.wtf/go-macaddr

go 1.22

Expand Down
2 changes: 1 addition & 1 deletion internal/convert/convert.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package convert

import "github.com/thatmattlove/go-macaddr/internal/constant"
import "go.mdl.wtf/go-macaddr/internal/constant"

// ByteArrayToInt converts a byte array to an int64.
func ByteArrayToInt64(arr []byte) int64 {
Expand Down
4 changes: 2 additions & 2 deletions internal/convert/convert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/jaswdr/faker/v2"
"github.com/stretchr/testify/assert"
"github.com/thatmattlove/go-macaddr/internal/constant"
"github.com/thatmattlove/go-macaddr/internal/convert"
"go.mdl.wtf/go-macaddr/internal/constant"
"go.mdl.wtf/go-macaddr/internal/convert"
)

func Test_ChunkStr(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions internal/format/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"regexp"
"strings"

"github.com/thatmattlove/go-macaddr/internal/constant"
"github.com/thatmattlove/go-macaddr/internal/convert"
"go.mdl.wtf/go-macaddr/internal/constant"
"go.mdl.wtf/go-macaddr/internal/convert"
)

// PadRight pads a string with a another string up to n total length. For example, given
Expand Down
2 changes: 1 addition & 1 deletion internal/format/format_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"github.com/thatmattlove/go-macaddr/internal/format"
"go.mdl.wtf/go-macaddr/internal/format"
)

func Test_PadRight(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/read/read_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"github.com/thatmattlove/go-macaddr/internal/read"
"go.mdl.wtf/go-macaddr/internal/read"
)

func Test_PrefixLength(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/validate/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strconv"
"strings"

"github.com/thatmattlove/go-macaddr/internal/constant"
"go.mdl.wtf/go-macaddr/internal/constant"
)

// Hex ensures all alphanumeric characters in a string are valid hexadecimal characters.
Expand Down
4 changes: 2 additions & 2 deletions internal/validate/validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/thatmattlove/go-macaddr/internal/constant"
"github.com/thatmattlove/go-macaddr/internal/validate"
"go.mdl.wtf/go-macaddr/internal/constant"
"go.mdl.wtf/go-macaddr/internal/validate"
)

func Test_Hex(t *testing.T) {
Expand Down
10 changes: 5 additions & 5 deletions mac.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"strconv"
"strings"

"github.com/thatmattlove/go-macaddr/internal/constant"
"github.com/thatmattlove/go-macaddr/internal/convert"
"github.com/thatmattlove/go-macaddr/internal/format"
"github.com/thatmattlove/go-macaddr/internal/read"
"github.com/thatmattlove/go-macaddr/internal/validate"
"go.mdl.wtf/go-macaddr/internal/constant"
"go.mdl.wtf/go-macaddr/internal/convert"
"go.mdl.wtf/go-macaddr/internal/format"
"go.mdl.wtf/go-macaddr/internal/read"
"go.mdl.wtf/go-macaddr/internal/validate"
)

// MACAddress represents a single MAC Address, a slice of bytes. Currently, only 48-bit (EUI-48)
Expand Down
8 changes: 4 additions & 4 deletions mac_prefix.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"fmt"
"math"

"github.com/thatmattlove/go-macaddr/internal/constant"
"github.com/thatmattlove/go-macaddr/internal/convert"
"github.com/thatmattlove/go-macaddr/internal/read"
"github.com/thatmattlove/go-macaddr/internal/validate"
"go.mdl.wtf/go-macaddr/internal/constant"
"go.mdl.wtf/go-macaddr/internal/convert"
"go.mdl.wtf/go-macaddr/internal/read"
"go.mdl.wtf/go-macaddr/internal/validate"
)

// MACPrefixIterator tracks iteration state while iterating through a MACPrefix.
Expand Down
4 changes: 2 additions & 2 deletions mac_prefix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/thatmattlove/go-macaddr"
"github.com/thatmattlove/go-macaddr/internal/constant"
"go.mdl.wtf/go-macaddr"
"go.mdl.wtf/go-macaddr/internal/constant"
)

func Test_MustParseMACPrefix(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions mac_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/thatmattlove/go-macaddr"
"github.com/thatmattlove/go-macaddr/internal/constant"
"github.com/thatmattlove/go-macaddr/internal/read"
"go.mdl.wtf/go-macaddr"
"go.mdl.wtf/go-macaddr/internal/constant"
"go.mdl.wtf/go-macaddr/internal/read"
)

func TestMustParseMACAddress(t *testing.T) {
Expand Down

0 comments on commit 28d7166

Please sign in to comment.