change package names

This commit is contained in:
fancl 2024-11-12 17:47:28 +08:00
parent 9dbae23345
commit 129a9e768d
17 changed files with 39 additions and 39 deletions

View File

@ -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()

View File

@ -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"

View File

@ -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"

View File

@ -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"
)

View File

@ -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"

2
go.mod
View File

@ -1,4 +1,4 @@
module git.nspix.com/golang/kos
module git.nobla.cn/golang/kos
go 1.20

View File

@ -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"
)

View File

@ -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"

View File

@ -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"

View File

@ -2,7 +2,7 @@ package log
import (
"fmt"
"git.nspix.com/golang/kos/util/env"
"git.nobla.cn/golang/kos/util/env"
"strconv"
"time"
)

View File

@ -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"
)

View File

@ -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 (

View File

@ -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"

View File

@ -2,7 +2,7 @@ package humanize
import (
"bytes"
"git.nspix.com/golang/kos/util/bs"
"git.nobla.cn/golang/kos/util/bs"
"time"
)

View File

@ -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"

View File

@ -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"

View File

@ -1,7 +1,7 @@
package reflection
import (
"git.nspix.com/golang/kos/util/reflect"
"git.nobla.cn/golang/kos/util/reflect"
reflectpkg "reflect"
)