Skip to content

Commit 2175e06

Browse files
committed
transformed into module
1 parent b6b175b commit 2175e06

File tree

9 files changed

+12
-26
lines changed

9 files changed

+12
-26
lines changed

internal/solver/errors.go renamed to errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package solver
1+
package geetest
22

33
import "errors"
44

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module geetest
1+
module github.com/vimbing/geetest-solver
22

33
go 1.22.1
44

internal/solver/image_index.go renamed to image_index.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package solver
1+
package geetest
22

33
var imageIndex = map[string]int{
44
"818056cdeef639e8": 221,

main.go

Lines changed: 0 additions & 16 deletions
This file was deleted.

internal/solver/new.go renamed to new.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
package solver
1+
package geetest
22

33
import (
44
"fmt"
5-
"geetest/internal/utils"
5+
6+
"github.com/vimbing/geetest-solver/internal/utils"
67

78
"github.com/vimbing/http"
89
)

internal/solver/payloads.go renamed to payloads.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package solver
1+
package geetest
22

33
type payloadW struct {
44
DeviceID string `json:"device_id"`

internal/solver/responses.go renamed to responses.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package solver
1+
package geetest
22

33
type responseGeneric struct {
44
Status string `json:"status"`

internal/solver/solver.go renamed to solver.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
package solver
1+
package geetest
22

33
import (
44
"bytes"
55
"encoding/base64"
66
"encoding/json"
77
"fmt"
8-
"geetest/internal/utils"
98
"image/png"
109
"math/rand"
1110
"regexp"
1211

12+
"github.com/vimbing/geetest-solver/internal/utils"
13+
1314
"github.com/corona10/goimagehash"
1415
"github.com/google/uuid"
1516
fhttp "github.com/vimbing/fhttp"

internal/solver/types.go renamed to types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package solver
1+
package geetest
22

33
import "github.com/vimbing/http"
44

0 commit comments

Comments
 (0)