From 129a9e768d4a4817741d75bbd5ce2a24719f47eb Mon Sep 17 00:00:00 2001 From: fancl Date: Tue, 12 Nov 2024 17:47:28 +0800 Subject: [PATCH] change package names --- cmd/main.go | 8 ++++---- entry/cli/client.go | 2 +- entry/cli/serialize.go | 4 ++-- entry/cli/server.go | 2 +- entry/http/server.go | 2 +- go.mod | 2 +- instance.go | 20 ++++++++++---------- options.go | 6 +++--- pkg/cache/memcache.go | 2 +- pkg/log/console.go | 2 +- service.go | 12 ++++++------ types.go | 6 +++--- util/fetch/fetch.go | 2 +- util/humanize/duration.go | 2 +- util/humanize/size.go | 2 +- util/humanize/time.go | 2 +- util/reflection/reflection.go | 2 +- 17 files changed, 39 insertions(+), 39 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index b2c0774..9d26762 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -4,12 +4,12 @@ import ( "context" "embed" "flag" - "git.nspix.com/golang/kos/entry/cli" - "git.nspix.com/golang/kos/entry/http" + "git.nobla.cn/golang/kos/entry/cli" + "git.nobla.cn/golang/kos/entry/http" httpkg "net/http" "time" - "git.nspix.com/golang/kos" + "git.nobla.cn/golang/kos" ) //go:embed web @@ -61,7 +61,7 @@ func (s *subServer) Stop() (err error) { func main() { flag.Parse() svr := kos.Init( - kos.WithName("git.nspix.com/golang/test", "0.0.1"), + kos.WithName("git.nobla.cn/golang/test", "0.0.1"), kos.WithServer(&subServer{}), ) svr.Run() diff --git a/entry/cli/client.go b/entry/cli/client.go index 8effefa..5a5b59a 100644 --- a/entry/cli/client.go +++ b/entry/cli/client.go @@ -4,7 +4,7 @@ import ( "context" "encoding/json" "fmt" - "git.nspix.com/golang/kos/util/env" + "git.nobla.cn/golang/kos/util/env" "github.com/peterh/liner" "io" "math" diff --git a/entry/cli/serialize.go b/entry/cli/serialize.go index 550013e..723c16f 100644 --- a/entry/cli/serialize.go +++ b/entry/cli/serialize.go @@ -4,8 +4,8 @@ import ( "bytes" "encoding/json" "fmt" - "git.nspix.com/golang/kos/util/arrays" - "git.nspix.com/golang/kos/util/pool" + "git.nobla.cn/golang/kos/util/arrays" + "git.nobla.cn/golang/kos/util/pool" "github.com/mattn/go-runewidth" "reflect" "strconv" diff --git a/entry/cli/server.go b/entry/cli/server.go index 5bee47c..9764ace 100644 --- a/entry/cli/server.go +++ b/entry/cli/server.go @@ -13,7 +13,7 @@ import ( "sync/atomic" "time" - "git.nspix.com/golang/kos/util/env" + "git.nobla.cn/golang/kos/util/env" "github.com/sourcegraph/conc" ) diff --git a/entry/http/server.go b/entry/http/server.go index cebcfd7..2134dfc 100644 --- a/entry/http/server.go +++ b/entry/http/server.go @@ -3,7 +3,7 @@ package http import ( "context" "embed" - "git.nspix.com/golang/kos/entry/http/router" + "git.nobla.cn/golang/kos/entry/http/router" "net" "net/http" "path" diff --git a/go.mod b/go.mod index 10f7561..46b07cc 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module git.nspix.com/golang/kos +module git.nobla.cn/golang/kos go 1.20 diff --git a/instance.go b/instance.go index 8e4762d..4e20caa 100644 --- a/instance.go +++ b/instance.go @@ -1,16 +1,16 @@ package kos import ( - "git.nspix.com/golang/kos/entry/cli" - "git.nspix.com/golang/kos/entry/http" - _ "git.nspix.com/golang/kos/pkg/request" - _ "git.nspix.com/golang/kos/util/arrays" - _ "git.nspix.com/golang/kos/util/bs" - _ "git.nspix.com/golang/kos/util/fetch" - _ "git.nspix.com/golang/kos/util/humanize" - _ "git.nspix.com/golang/kos/util/random" - _ "git.nspix.com/golang/kos/util/reflection" - _ "git.nspix.com/golang/kos/util/sys" + "git.nobla.cn/golang/kos/entry/cli" + "git.nobla.cn/golang/kos/entry/http" + _ "git.nobla.cn/golang/kos/pkg/request" + _ "git.nobla.cn/golang/kos/util/arrays" + _ "git.nobla.cn/golang/kos/util/bs" + _ "git.nobla.cn/golang/kos/util/fetch" + _ "git.nobla.cn/golang/kos/util/humanize" + _ "git.nobla.cn/golang/kos/util/random" + _ "git.nobla.cn/golang/kos/util/reflection" + _ "git.nobla.cn/golang/kos/util/sys" "sync" ) diff --git a/options.go b/options.go index e8fbe88..c8828c3 100644 --- a/options.go +++ b/options.go @@ -2,9 +2,9 @@ package kos import ( "context" - "git.nspix.com/golang/kos/util/env" - "git.nspix.com/golang/kos/util/ip" - "git.nspix.com/golang/kos/util/sys" + "git.nobla.cn/golang/kos/util/env" + "git.nobla.cn/golang/kos/util/ip" + "git.nobla.cn/golang/kos/util/sys" "os" "strconv" "strings" diff --git a/pkg/cache/memcache.go b/pkg/cache/memcache.go index fadf412..04c5b2d 100644 --- a/pkg/cache/memcache.go +++ b/pkg/cache/memcache.go @@ -2,7 +2,7 @@ package cache import ( "context" - "git.nspix.com/golang/kos/util/env" + "git.nobla.cn/golang/kos/util/env" "github.com/patrickmn/go-cache" "os" "time" diff --git a/pkg/log/console.go b/pkg/log/console.go index 9711a40..360527f 100644 --- a/pkg/log/console.go +++ b/pkg/log/console.go @@ -2,7 +2,7 @@ package log import ( "fmt" - "git.nspix.com/golang/kos/util/env" + "git.nobla.cn/golang/kos/util/env" "strconv" "time" ) diff --git a/service.go b/service.go index 29cc903..3c6bbc7 100644 --- a/service.go +++ b/service.go @@ -16,12 +16,12 @@ import ( "syscall" "time" - "git.nspix.com/golang/kos/entry" - "git.nspix.com/golang/kos/entry/cli" - "git.nspix.com/golang/kos/entry/http" - _ "git.nspix.com/golang/kos/pkg/cache" - "git.nspix.com/golang/kos/pkg/log" - "git.nspix.com/golang/kos/util/env" + "git.nobla.cn/golang/kos/entry" + "git.nobla.cn/golang/kos/entry/cli" + "git.nobla.cn/golang/kos/entry/http" + _ "git.nobla.cn/golang/kos/pkg/cache" + "git.nobla.cn/golang/kos/pkg/log" + "git.nobla.cn/golang/kos/util/env" "github.com/sourcegraph/conc" ) diff --git a/types.go b/types.go index bfb4cfa..302feef 100644 --- a/types.go +++ b/types.go @@ -2,9 +2,9 @@ package kos import ( "context" - "git.nspix.com/golang/kos/entry" - "git.nspix.com/golang/kos/entry/cli" - "git.nspix.com/golang/kos/entry/http" + "git.nobla.cn/golang/kos/entry" + "git.nobla.cn/golang/kos/entry/cli" + "git.nobla.cn/golang/kos/entry/http" ) type ( diff --git a/util/fetch/fetch.go b/util/fetch/fetch.go index a76d5fc..4733d86 100644 --- a/util/fetch/fetch.go +++ b/util/fetch/fetch.go @@ -7,7 +7,7 @@ import ( "encoding/json" "encoding/xml" "fmt" - "git.nspix.com/golang/kos/util/env" + "git.nobla.cn/golang/kos/util/env" "io" "net" "net/http" diff --git a/util/humanize/duration.go b/util/humanize/duration.go index 059eb2d..2a3f4c5 100644 --- a/util/humanize/duration.go +++ b/util/humanize/duration.go @@ -2,7 +2,7 @@ package humanize import ( "bytes" - "git.nspix.com/golang/kos/util/bs" + "git.nobla.cn/golang/kos/util/bs" "time" ) diff --git a/util/humanize/size.go b/util/humanize/size.go index d48bd4c..daf3dda 100644 --- a/util/humanize/size.go +++ b/util/humanize/size.go @@ -3,7 +3,7 @@ package humanize import ( "bytes" "fmt" - "git.nspix.com/golang/kos/util/bs" + "git.nobla.cn/golang/kos/util/bs" "math" "strconv" "strings" diff --git a/util/humanize/time.go b/util/humanize/time.go index 5841e2b..e5844cd 100644 --- a/util/humanize/time.go +++ b/util/humanize/time.go @@ -3,7 +3,7 @@ package humanize import ( "bytes" "fmt" - "git.nspix.com/golang/kos/util/bs" + "git.nobla.cn/golang/kos/util/bs" "math" "sort" "time" diff --git a/util/reflection/reflection.go b/util/reflection/reflection.go index 1cdc4bf..482aee2 100644 --- a/util/reflection/reflection.go +++ b/util/reflection/reflection.go @@ -1,7 +1,7 @@ package reflection import ( - "git.nspix.com/golang/kos/util/reflect" + "git.nobla.cn/golang/kos/util/reflect" reflectpkg "reflect" )