aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-10 23:18:15 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-10 23:18:15 +0300
commit94edf043563ed65318b376a8895734b438e135ad (patch)
treee0ee48390e1cd1e34c9b6229df82bfa88a013c7d
parent6bc6ce76db15c873cabec6280963ea60ec022ea0 (diff)
Новый путь
-rw-r--r--README.md10
-rw-r--r--go.mod2
2 files changed, 7 insertions, 5 deletions
diff --git a/README.md b/README.md
index b0a18ea..e6c56ba 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ Go 1.18+ required
1. Create JSON-RPC server with options:
```go
- import "go.neonxp.ru/jsonrpc2/rpc"
+ import "neonxp.ru/go/jsonrpc2/rpc"
...
s := rpc.New(
rpc.WithTransport(&transport.HTTP{
@@ -32,7 +32,7 @@ Go 1.18+ required
2. Add required transport(s):
```go
- import "go.neonxp.ru/jsonrpc2/transport"
+ import "neonxp.ru/go/jsonrpc2/transport"
...
s.Use(
rpc.WithTransport(&transport.TCP{Bind: ":3000"}),
@@ -91,9 +91,9 @@ package main
import (
"context"
- "go.neonxp.ru/jsonrpc2/rpc"
- "go.neonxp.ru/jsonrpc2/rpc/middleware"
- "go.neonxp.ru/jsonrpc2/transport"
+ "neonxp.ru/go/jsonrpc2/rpc"
+ "neonxp.ru/go/jsonrpc2/rpc/middleware"
+ "neonxp.ru/go/jsonrpc2/transport"
)
func main() {
diff --git a/go.mod b/go.mod
index 4f8debc..a18d7e9 100644
--- a/go.mod
+++ b/go.mod
@@ -8,3 +8,5 @@ require (
)
require github.com/qri-io/jsonpointer v0.1.1 // indirect
+
+replace go.neonxp.ru/jsonrpc2 latest => neonxp.ru/go/jsonrpc2 latest