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" "context"
"embed" "embed"
"flag" "flag"
"git.nspix.com/golang/kos/entry/cli" "git.nobla.cn/golang/kos/entry/cli"
"git.nspix.com/golang/kos/entry/http" "git.nobla.cn/golang/kos/entry/http"
httpkg "net/http" httpkg "net/http"
"time" "time"
"git.nspix.com/golang/kos" "git.nobla.cn/golang/kos"
) )
//go:embed web //go:embed web
@ -61,7 +61,7 @@ func (s *subServer) Stop() (err error) {
func main() { func main() {
flag.Parse() flag.Parse()
svr := kos.Init( 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{}), kos.WithServer(&subServer{}),
) )
svr.Run() svr.Run()

View File

@ -4,7 +4,7 @@ import (
"context" "context"
"encoding/json" "encoding/json"
"fmt" "fmt"
"git.nspix.com/golang/kos/util/env" "git.nobla.cn/golang/kos/util/env"
"github.com/peterh/liner" "github.com/peterh/liner"
"io" "io"
"math" "math"

View File

@ -4,8 +4,8 @@ import (
"bytes" "bytes"
"encoding/json" "encoding/json"
"fmt" "fmt"
"git.nspix.com/golang/kos/util/arrays" "git.nobla.cn/golang/kos/util/arrays"
"git.nspix.com/golang/kos/util/pool" "git.nobla.cn/golang/kos/util/pool"
"github.com/mattn/go-runewidth" "github.com/mattn/go-runewidth"
"reflect" "reflect"
"strconv" "strconv"

View File

@ -13,7 +13,7 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"git.nspix.com/golang/kos/util/env" "git.nobla.cn/golang/kos/util/env"
"github.com/sourcegraph/conc" "github.com/sourcegraph/conc"
) )

View File

@ -3,7 +3,7 @@ package http
import ( import (
"context" "context"
"embed" "embed"
"git.nspix.com/golang/kos/entry/http/router" "git.nobla.cn/golang/kos/entry/http/router"
"net" "net"
"net/http" "net/http"
"path" "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 go 1.20

View File

@ -1,16 +1,16 @@
package kos package kos
import ( import (
"git.nspix.com/golang/kos/entry/cli" "git.nobla.cn/golang/kos/entry/cli"
"git.nspix.com/golang/kos/entry/http" "git.nobla.cn/golang/kos/entry/http"
_ "git.nspix.com/golang/kos/pkg/request" _ "git.nobla.cn/golang/kos/pkg/request"
_ "git.nspix.com/golang/kos/util/arrays" _ "git.nobla.cn/golang/kos/util/arrays"
_ "git.nspix.com/golang/kos/util/bs" _ "git.nobla.cn/golang/kos/util/bs"
_ "git.nspix.com/golang/kos/util/fetch" _ "git.nobla.cn/golang/kos/util/fetch"
_ "git.nspix.com/golang/kos/util/humanize" _ "git.nobla.cn/golang/kos/util/humanize"
_ "git.nspix.com/golang/kos/util/random" _ "git.nobla.cn/golang/kos/util/random"
_ "git.nspix.com/golang/kos/util/reflection" _ "git.nobla.cn/golang/kos/util/reflection"
_ "git.nspix.com/golang/kos/util/sys" _ "git.nobla.cn/golang/kos/util/sys"
"sync" "sync"
) )

View File

@ -2,9 +2,9 @@ package kos
import ( import (
"context" "context"
"git.nspix.com/golang/kos/util/env" "git.nobla.cn/golang/kos/util/env"
"git.nspix.com/golang/kos/util/ip" "git.nobla.cn/golang/kos/util/ip"
"git.nspix.com/golang/kos/util/sys" "git.nobla.cn/golang/kos/util/sys"
"os" "os"
"strconv" "strconv"
"strings" "strings"

View File

@ -2,7 +2,7 @@ package cache
import ( import (
"context" "context"
"git.nspix.com/golang/kos/util/env" "git.nobla.cn/golang/kos/util/env"
"github.com/patrickmn/go-cache" "github.com/patrickmn/go-cache"
"os" "os"
"time" "time"

View File

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

View File

@ -16,12 +16,12 @@ import (
"syscall" "syscall"
"time" "time"
"git.nspix.com/golang/kos/entry" "git.nobla.cn/golang/kos/entry"
"git.nspix.com/golang/kos/entry/cli" "git.nobla.cn/golang/kos/entry/cli"
"git.nspix.com/golang/kos/entry/http" "git.nobla.cn/golang/kos/entry/http"
_ "git.nspix.com/golang/kos/pkg/cache" _ "git.nobla.cn/golang/kos/pkg/cache"
"git.nspix.com/golang/kos/pkg/log" "git.nobla.cn/golang/kos/pkg/log"
"git.nspix.com/golang/kos/util/env" "git.nobla.cn/golang/kos/util/env"
"github.com/sourcegraph/conc" "github.com/sourcegraph/conc"
) )

View File

@ -2,9 +2,9 @@ package kos
import ( import (
"context" "context"
"git.nspix.com/golang/kos/entry" "git.nobla.cn/golang/kos/entry"
"git.nspix.com/golang/kos/entry/cli" "git.nobla.cn/golang/kos/entry/cli"
"git.nspix.com/golang/kos/entry/http" "git.nobla.cn/golang/kos/entry/http"
) )
type ( type (

View File

@ -7,7 +7,7 @@ import (
"encoding/json" "encoding/json"
"encoding/xml" "encoding/xml"
"fmt" "fmt"
"git.nspix.com/golang/kos/util/env" "git.nobla.cn/golang/kos/util/env"
"io" "io"
"net" "net"
"net/http" "net/http"

View File

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

View File

@ -3,7 +3,7 @@ package humanize
import ( import (
"bytes" "bytes"
"fmt" "fmt"
"git.nspix.com/golang/kos/util/bs" "git.nobla.cn/golang/kos/util/bs"
"math" "math"
"strconv" "strconv"
"strings" "strings"

View File

@ -3,7 +3,7 @@ package humanize
import ( import (
"bytes" "bytes"
"fmt" "fmt"
"git.nspix.com/golang/kos/util/bs" "git.nobla.cn/golang/kos/util/bs"
"math" "math"
"sort" "sort"
"time" "time"

View File

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