diff --git a/README.md b/README.md index d1e94f0..42392c9 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,13 @@ [![GitHub license](https://img.shields.io/github/license/lemon-mint/experiment?style=for-the-badge&cache_key=0)](https://github.com/lemon-mint/experiment/blob/main/LICENSE) [![GitHub Workflow Status (event)](https://img.shields.io/github/actions/workflow/status/lemon-mint/experiment/go.yml?event=push&style=for-the-badge)](https://github.com/lemon-mint/experiment/actions/workflows/go.yml) -[![Go Reference](https://img.shields.io/badge/go-reference-%23007d9c?style=for-the-badge&logo=go)](https://pkg.go.dev/v8.run/go/exp) -# exp-pkgs +[![Go Reference](https://img.shields.io/badge/go-reference-%23007d9c?style=for-the-badge&logo=go)](https://pkg.go.dev/gopkg.eu.org/exppkgs) + +# Exp Pkgs experimental packages # Installation ```bash -go get -u v8.run/go/exp +go get -u gopkg.eu.org/exppkgs ``` diff --git a/broadcast/butil/broadcastchannel.go b/broadcast/butil/broadcastchannel.go index 50c2b17..d6fda2e 100644 --- a/broadcast/butil/broadcastchannel.go +++ b/broadcast/butil/broadcastchannel.go @@ -3,7 +3,7 @@ package butil import ( "sync" - "v8.run/go/exp/broadcast" + "gopkg.eu.org/exppkgs/broadcast" ) var broadcastChannelMap = sync.Map{} diff --git a/broadcast/evbus/evbus.go b/broadcast/evbus/evbus.go index 0c9454f..138fff4 100644 --- a/broadcast/evbus/evbus.go +++ b/broadcast/evbus/evbus.go @@ -5,7 +5,7 @@ import ( "sync" "sync/atomic" - "v8.run/go/exp/broadcast" + "gopkg.eu.org/exppkgs/broadcast" ) var evbus_map sync.Map diff --git a/broadcast/evbus/evbus_test.go b/broadcast/evbus/evbus_test.go index e0def95..3f7783d 100644 --- a/broadcast/evbus/evbus_test.go +++ b/broadcast/evbus/evbus_test.go @@ -4,7 +4,7 @@ import ( "sync/atomic" "testing" - "v8.run/go/exp/broadcast/evbus" + "gopkg.eu.org/exppkgs/broadcast/evbus" ) func TestEvbus(t *testing.T) { diff --git a/cmd/bfbuild/bfbuild.go b/cmd/bfbuild/bfbuild.go index 95553ed..87a8905 100644 --- a/cmd/bfbuild/bfbuild.go +++ b/cmd/bfbuild/bfbuild.go @@ -7,7 +7,7 @@ import ( "log" "os" - "v8.run/go/exp/hash/hashutil/bloom" + "gopkg.eu.org/exppkgs/hash/hashutil/bloom" ) var ( diff --git a/container2/ring2/ring2_test.go b/container2/ring2/ring2_test.go index db111c8..f834254 100644 --- a/container2/ring2/ring2_test.go +++ b/container2/ring2/ring2_test.go @@ -3,7 +3,7 @@ package ring2_test import ( "testing" - "v8.run/go/exp/container2/ring2" + "gopkg.eu.org/exppkgs/container2/ring2" ) func TestRing2(t *testing.T) { diff --git a/fastrand/alg/alg.go b/fastrand/alg/alg.go index 129febf..2695c84 100644 --- a/fastrand/alg/alg.go +++ b/fastrand/alg/alg.go @@ -1,8 +1,8 @@ package alg import ( - "v8.run/go/exp/fastrand/alg/splitmix64" - "v8.run/go/exp/fastrand/alg/xoshiro256plusplus" + "gopkg.eu.org/exppkgs/fastrand/alg/splitmix64" + "gopkg.eu.org/exppkgs/fastrand/alg/xoshiro256plusplus" ) func Splitmix64() uint64 { diff --git a/fastrand/alg/xoshiro256plusplus/xoshiro256plusplus.go b/fastrand/alg/xoshiro256plusplus/xoshiro256plusplus.go index 738342f..ac176bb 100644 --- a/fastrand/alg/xoshiro256plusplus/xoshiro256plusplus.go +++ b/fastrand/alg/xoshiro256plusplus/xoshiro256plusplus.go @@ -16,7 +16,7 @@ package xoshiro256plusplus import ( "sync" - "v8.run/go/exp/fastrand/alg/splitmix64" + "gopkg.eu.org/exppkgs/fastrand/alg/splitmix64" ) type State [4]uint64 diff --git a/fastrand/example_rng_test.go b/fastrand/example_rng_test.go index eccfda1..87f7c39 100644 --- a/fastrand/example_rng_test.go +++ b/fastrand/example_rng_test.go @@ -3,7 +3,7 @@ package fastrand_test import ( "fmt" - "v8.run/go/exp/fastrand" + "gopkg.eu.org/exppkgs/fastrand" ) func Example_rNG() { diff --git a/fastrand/example_splitmix64_test.go b/fastrand/example_splitmix64_test.go index 891ea32..5808dc8 100644 --- a/fastrand/example_splitmix64_test.go +++ b/fastrand/example_splitmix64_test.go @@ -3,7 +3,7 @@ package fastrand_test import ( "fmt" - "v8.run/go/exp/fastrand/alg" + "gopkg.eu.org/exppkgs/fastrand/alg" ) func Example_splitmix64() { diff --git a/fastrand/rng.go b/fastrand/rng.go index 40cdc98..95b581f 100644 --- a/fastrand/rng.go +++ b/fastrand/rng.go @@ -5,8 +5,8 @@ import ( "encoding/binary" "sync" - "v8.run/go/exp/fastrand/alg/splitmix64" - "v8.run/go/exp/util/noescape" + "gopkg.eu.org/exppkgs/fastrand/alg/splitmix64" + "gopkg.eu.org/exppkgs/util/noescape" ) type RNG struct { diff --git a/fastrand/u32.go b/fastrand/u32.go index 2022a49..b725161 100644 --- a/fastrand/u32.go +++ b/fastrand/u32.go @@ -4,7 +4,7 @@ import ( _ "runtime" _ "unsafe" - "v8.run/go/exp/util/mathutil" + "gopkg.eu.org/exppkgs/util/mathutil" ) func runtime_fastrand() uint32 diff --git a/hash/hashutil/bloom/bloomf.go b/hash/hashutil/bloom/bloomf.go index 1bde596..232a197 100644 --- a/hash/hashutil/bloom/bloomf.go +++ b/hash/hashutil/bloom/bloomf.go @@ -5,8 +5,8 @@ import ( "errors" "math" - "v8.run/go/exp/fastrand/alg/splitmix64" - "v8.run/go/exp/hash/wyhash" + "gopkg.eu.org/exppkgs/fastrand/alg/splitmix64" + "gopkg.eu.org/exppkgs/hash/wyhash" ) type Bloom struct { diff --git a/hash/hashutil/hasher.go b/hash/hashutil/hasher.go index 847f3fb..d599458 100644 --- a/hash/hashutil/hasher.go +++ b/hash/hashutil/hasher.go @@ -4,7 +4,7 @@ import ( "reflect" "unsafe" - "v8.run/go/exp/hash/wyhash" + "gopkg.eu.org/exppkgs/hash/wyhash" ) func Hasher[T comparable](seed uint64) func(T) uint64 { diff --git a/hash/wyhash/wyhash_test.go b/hash/wyhash/wyhash_test.go index 3d7db2c..076feac 100644 --- a/hash/wyhash/wyhash_test.go +++ b/hash/wyhash/wyhash_test.go @@ -5,7 +5,7 @@ import ( "testing" "unsafe" - "v8.run/go/exp/fastrand/alg/splitmix64" + "gopkg.eu.org/exppkgs/fastrand/alg/splitmix64" ) func Test_wyhash(t *testing.T) { diff --git a/hashtable/table_test.go b/hashtable/table_test.go index e65d6d5..255cdeb 100644 --- a/hashtable/table_test.go +++ b/hashtable/table_test.go @@ -6,10 +6,10 @@ import ( "sync" "testing" - "v8.run/go/exp/fastrand" - "v8.run/go/exp/hash" - "v8.run/go/exp/hashtable" - "v8.run/go/exp/util/slice" + "gopkg.eu.org/exppkgs/fastrand" + "gopkg.eu.org/exppkgs/hash" + "gopkg.eu.org/exppkgs/hashtable" + "gopkg.eu.org/exppkgs/util/slice" ) const size = 1 << 20 diff --git a/pool2/gopool1/gopool1_test.go b/pool2/gopool1/gopool1_test.go index d461031..84f8174 100644 --- a/pool2/gopool1/gopool1_test.go +++ b/pool2/gopool1/gopool1_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "v8.run/go/exp/pool2/gopool1" + "gopkg.eu.org/exppkgs/pool2/gopool1" ) func TestGoPool1Leak(t *testing.T) { diff --git a/pool2/gopool2/gopool2_test.go b/pool2/gopool2/gopool2_test.go index c968580..51bbe2e 100644 --- a/pool2/gopool2/gopool2_test.go +++ b/pool2/gopool2/gopool2_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "v8.run/go/exp/pool2/gopool2" + "gopkg.eu.org/exppkgs/pool2/gopool2" ) func some_io_job(wg *sync.WaitGroup) { diff --git a/time2/parse.go b/time2/parse.go index d76a9c1..52918e9 100644 --- a/time2/parse.go +++ b/time2/parse.go @@ -3,7 +3,7 @@ package time2 import ( "time" - "v8.run/go/exp/time2/timeparse" + "gopkg.eu.org/exppkgs/time2/timeparse" ) type DateTime struct { diff --git a/util/randutil/randstr.go b/util/randutil/randstr.go index dcf13bc..d2cfbc2 100644 --- a/util/randutil/randstr.go +++ b/util/randutil/randstr.go @@ -4,7 +4,7 @@ import ( "crypto/rand" "encoding/base64" - "v8.run/go/exp/fastrand" + "gopkg.eu.org/exppkgs/fastrand" ) func RandString(size int) string { diff --git a/util/slice/shuffle.go b/util/slice/shuffle.go index fb1434b..1dcf6db 100644 --- a/util/slice/shuffle.go +++ b/util/slice/shuffle.go @@ -1,7 +1,7 @@ package slice import ( - "v8.run/go/exp/fastrand" + "gopkg.eu.org/exppkgs/fastrand" ) func Shuffle[T any](data []T) {