chore: use shortie as a internal package
This commit is contained in:
parent
9841b9d71a
commit
473deec7e9
6
go.mod
6
go.mod
@ -6,10 +6,12 @@ require (
|
|||||||
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d
|
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d
|
||||||
github.com/fasthttp/router v1.4.9
|
github.com/fasthttp/router v1.4.9
|
||||||
github.com/patrickmn/go-cache v2.1.0+incompatible
|
github.com/patrickmn/go-cache v2.1.0+incompatible
|
||||||
github.com/valyala/fasthttp v1.36.0
|
github.com/valyala/fasthttp v1.37.0
|
||||||
github.com/wolviecb/short/shortie v0.0.0-20220412102501-705312b4dffe
|
internal/shortie v0.0.0-00010101000000-000000000000
|
||||||
)
|
)
|
||||||
|
|
||||||
|
replace internal/shortie => ./internal/shortie
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/andybalholm/brotli v1.0.4 // indirect
|
github.com/andybalholm/brotli v1.0.4 // indirect
|
||||||
github.com/klauspost/compress v1.15.4 // indirect
|
github.com/klauspost/compress v1.15.4 // indirect
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
module github.com/wolviecb/short/shortie
|
module shortie
|
||||||
|
|
||||||
go 1.18
|
go 1.18
|
||||||
|
|
3
main.go
3
main.go
@ -11,8 +11,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"internal/shortie"
|
||||||
|
|
||||||
"github.com/valyala/fasthttp"
|
"github.com/valyala/fasthttp"
|
||||||
"github.com/wolviecb/short/shortie"
|
|
||||||
|
|
||||||
"github.com/asaskevich/govalidator"
|
"github.com/asaskevich/govalidator"
|
||||||
"github.com/fasthttp/router"
|
"github.com/fasthttp/router"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user