Module name was changet to git.arav.top/Arav/justcaptcha.

This commit is contained in:
Alexander Andreev 2023-01-08 18:49:33 +04:00
parent 9bb80f1f6c
commit fcb656d4ea
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F
5 changed files with 11 additions and 7 deletions

View File

@ -3,7 +3,6 @@ package main
import ( import (
"flag" "flag"
"fmt" "fmt"
"justcaptcha/internal/http"
"log" "log"
"net/netip" "net/netip"
"os" "os"
@ -11,6 +10,8 @@ import (
"strings" "strings"
"syscall" "syscall"
"time" "time"
"git.arav.top/Arav/justcaptcha/internal/http"
) )
var version string var version string

2
go.mod
View File

@ -1,4 +1,4 @@
module justcaptcha module git.arav.top/Arav/justcaptcha
go 1.19 go 1.19

View File

@ -3,11 +3,12 @@ package http
import ( import (
"fmt" "fmt"
"image/jpeg" "image/jpeg"
"justcaptcha/pkg/captcha"
"justcaptcha/pkg/captcha/inmemdb"
"justcaptcha/pkg/dwcaptcha"
"net/http" "net/http"
"time" "time"
"git.arav.top/Arav/justcaptcha/pkg/captcha"
"git.arav.top/Arav/justcaptcha/pkg/captcha/inmemdb"
"git.arav.top/Arav/justcaptcha/pkg/dwcaptcha"
) )
const errMsgWrongAnswer = "An answer provided was wrong" const errMsgWrongAnswer = "An answer provided was wrong"

View File

@ -2,9 +2,10 @@ package inmemdb
import ( import (
"image" "image"
"justcaptcha/pkg/captcha"
"sync" "sync"
"time" "time"
"git.arav.top/Arav/justcaptcha/pkg/captcha"
) )
type InMemoryCaptchaDB struct { type InMemoryCaptchaDB struct {

View File

@ -2,10 +2,11 @@ package dwcaptcha
import ( import (
"image" "image"
"justcaptcha/pkg/captcha"
"math/rand" "math/rand"
"time" "time"
"git.arav.top/Arav/justcaptcha/pkg/captcha"
"github.com/fogleman/gg" "github.com/fogleman/gg"
) )