diff options
author | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-12-10 23:18:15 +0300 |
---|---|---|
committer | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-12-10 23:18:15 +0300 |
commit | 94edf043563ed65318b376a8895734b438e135ad (patch) | |
tree | e0ee48390e1cd1e34c9b6229df82bfa88a013c7d | |
parent | 6bc6ce76db15c873cabec6280963ea60ec022ea0 (diff) |
Новый путь
-rw-r--r-- | README.md | 10 | ||||
-rw-r--r-- | go.mod | 2 |
2 files changed, 7 insertions, 5 deletions
@@ -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() { @@ -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 |