Skip to content

Commit

Permalink
Update major
Browse files Browse the repository at this point in the history
  • Loading branch information
Mobilpadde committed Mar 7, 2023
1 parent 662f18e commit 0f1616c
Show file tree
Hide file tree
Showing 23 changed files with 28 additions and 28 deletions.
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/Mobilpadde/moths/v4
module github.com/Mobilpadde/moths/v5

go 1.20

Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os"
"time"

"github.com/Mobilpadde/moths/v4/token"
"github.com/Mobilpadde/moths/v4/token/emojies"
"github.com/Mobilpadde/moths/v5/token"
"github.com/Mobilpadde/moths/v5/token/emojies"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion token/checks/checkAmount.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package checks

import (
"github.com/Mobilpadde/moths/v4/token/errs"
"github.com/Mobilpadde/moths/v5/token/errs"
)

func CheckAmount(amount int) error {
Expand Down
2 changes: 1 addition & 1 deletion token/checks/checkAmount_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"testing"

"github.com/Mobilpadde/moths/v4/token/errs"
"github.com/Mobilpadde/moths/v5/token/errs"
)

func TestCheckAmount(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions token/checks/checkEmojies.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package checks

import (
"github.com/Mobilpadde/moths/v4/token/emojies"
"github.com/Mobilpadde/moths/v4/token/errs"
"github.com/Mobilpadde/moths/v5/token/emojies"
"github.com/Mobilpadde/moths/v5/token/errs"
)

func CheckEmojies(emojies emojies.Emojies) error {
Expand Down
4 changes: 2 additions & 2 deletions token/checks/checkEmojies_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"errors"
"testing"

"github.com/Mobilpadde/moths/v4/token/emojies"
"github.com/Mobilpadde/moths/v4/token/errs"
"github.com/Mobilpadde/moths/v5/token/emojies"
"github.com/Mobilpadde/moths/v5/token/errs"
"github.com/enescakir/emoji"
)

Expand Down
2 changes: 1 addition & 1 deletion token/checks/checkPeriod.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package checks
import (
"time"

"github.com/Mobilpadde/moths/v4/token/errs"
"github.com/Mobilpadde/moths/v5/token/errs"
)

func CheckPeriod(period time.Duration) error {
Expand Down
2 changes: 1 addition & 1 deletion token/checks/checkPeriod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"github.com/Mobilpadde/moths/v4/token/errs"
"github.com/Mobilpadde/moths/v5/token/errs"
)

func TestCheckInterval(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion token/checks/checkSecret.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package checks

import "github.com/Mobilpadde/moths/v4/token/errs"
import "github.com/Mobilpadde/moths/v5/token/errs"

func CheckSecret(secret string) error {
if len(secret) == 0 {
Expand Down
2 changes: 1 addition & 1 deletion token/code/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package code
import (
"time"

"github.com/Mobilpadde/moths/v4/token/emojies"
"github.com/Mobilpadde/moths/v5/token/emojies"
)

type Code struct {
Expand Down
2 changes: 1 addition & 1 deletion token/code/newCode.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"time"

"github.com/Mobilpadde/moths/v4/token/emojies"
"github.com/Mobilpadde/moths/v5/token/emojies"
)

const EmojiBytes = 4
Expand Down
2 changes: 1 addition & 1 deletion token/code/newCode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/Mobilpadde/moths/v4/token/emojies"
"github.com/Mobilpadde/moths/v5/token/emojies"
)

func TestNewCode(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion token/code/validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/Mobilpadde/moths/v4/token/emojies"
"github.com/Mobilpadde/moths/v5/token/emojies"
)

func TestValidate(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion token/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package token
import (
"time"

"github.com/Mobilpadde/moths/v4/token/emojies"
"github.com/Mobilpadde/moths/v5/token/emojies"
)

type Generator struct {
Expand Down
2 changes: 1 addition & 1 deletion token/newGenerator.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package token
import (
"time"

"github.com/Mobilpadde/moths/v4/token/checks"
"github.com/Mobilpadde/moths/v5/token/checks"
)

func NewGenerator(opts ...Option) (*Generator, error) {
Expand Down
4 changes: 2 additions & 2 deletions token/newGenerator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"testing"
"time"

"github.com/Mobilpadde/moths/v4/token/emojies"
"github.com/Mobilpadde/moths/v4/token/errs"
"github.com/Mobilpadde/moths/v5/token/emojies"
"github.com/Mobilpadde/moths/v5/token/errs"
)

func TestNewGenerator(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion token/next.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"math"
"time"

"github.com/Mobilpadde/moths/v4/token/code"
"github.com/Mobilpadde/moths/v5/token/code"
)

func (m *Generator) Next() (code.Code, error) {
Expand Down
2 changes: 1 addition & 1 deletion token/next_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"github.com/Mobilpadde/moths/v4/token/emojies"
"github.com/Mobilpadde/moths/v5/token/emojies"
)

func TestNextAndValidate(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion token/optionAmount.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package token

import (
"github.com/Mobilpadde/moths/v4/token/checks"
"github.com/Mobilpadde/moths/v5/token/checks"
)

func OptionWithAmount(amount int) Option {
Expand Down
4 changes: 2 additions & 2 deletions token/optionEmojies.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package token

import (
"github.com/Mobilpadde/moths/v4/token/checks"
"github.com/Mobilpadde/moths/v4/token/emojies"
"github.com/Mobilpadde/moths/v5/token/checks"
"github.com/Mobilpadde/moths/v5/token/emojies"
)

func OptionWithEmojies(emojies emojies.Emojies) Option {
Expand Down
2 changes: 1 addition & 1 deletion token/optionPeriod.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package token
import (
"time"

"github.com/Mobilpadde/moths/v4/token/checks"
"github.com/Mobilpadde/moths/v5/token/checks"
)

func OptionWithPeriod(period time.Duration) Option {
Expand Down
2 changes: 1 addition & 1 deletion token/optionSecret.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package token
import (
"encoding/base64"

"github.com/Mobilpadde/moths/v4/token/checks"
"github.com/Mobilpadde/moths/v5/token/checks"
)

func OptionWithSecret(secret string) Option {
Expand Down
2 changes: 1 addition & 1 deletion token/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package token
import (
"time"

"github.com/Mobilpadde/moths/v4/token/code"
"github.com/Mobilpadde/moths/v5/token/code"
)

func (m *Generator) Validate(moth string) bool {
Expand Down

0 comments on commit 0f1616c

Please sign in to comment.