Обновление имени пакета
This commit is contained in:
parent
f681f149ab
commit
6bc6ce76db
1 changed files with 5 additions and 5 deletions
10
README.md
10
README.md
|
@ -17,7 +17,7 @@ Go 1.18+ required
|
||||||
|
|
||||||
1. Create JSON-RPC server with options:
|
1. Create JSON-RPC server with options:
|
||||||
```go
|
```go
|
||||||
import "go.neonxp.dev/jsonrpc2/rpc"
|
import "go.neonxp.ru/jsonrpc2/rpc"
|
||||||
...
|
...
|
||||||
s := rpc.New(
|
s := rpc.New(
|
||||||
rpc.WithTransport(&transport.HTTP{
|
rpc.WithTransport(&transport.HTTP{
|
||||||
|
@ -32,7 +32,7 @@ Go 1.18+ required
|
||||||
|
|
||||||
2. Add required transport(s):
|
2. Add required transport(s):
|
||||||
```go
|
```go
|
||||||
import "go.neonxp.dev/jsonrpc2/transport"
|
import "go.neonxp.ru/jsonrpc2/transport"
|
||||||
...
|
...
|
||||||
s.Use(
|
s.Use(
|
||||||
rpc.WithTransport(&transport.TCP{Bind: ":3000"}),
|
rpc.WithTransport(&transport.TCP{Bind: ":3000"}),
|
||||||
|
@ -91,9 +91,9 @@ package main
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"go.neonxp.dev/jsonrpc2/rpc"
|
"go.neonxp.ru/jsonrpc2/rpc"
|
||||||
"go.neonxp.dev/jsonrpc2/rpc/middleware"
|
"go.neonxp.ru/jsonrpc2/rpc/middleware"
|
||||||
"go.neonxp.dev/jsonrpc2/transport"
|
"go.neonxp.ru/jsonrpc2/transport"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
Loading…
Reference in a new issue