diff options
author | Alexander Kiryukhin <a.kiryukhin@mail.ru> | 2022-03-24 18:37:38 +0300 |
---|---|---|
committer | Alexander Kiryukhin <a.kiryukhin@mail.ru> | 2022-03-24 18:37:38 +0300 |
commit | d4708a3665e546eea57611b17441ad9b8c89e9a4 (patch) | |
tree | d85dd050b2eaf9f321b166ecfb020069de460e93 | |
parent | 4a8f9ef10ed6253901396bd6cd3554af05cf0d73 (diff) |
Changed package name to `go.neonxp.dev/jsonrpc2`
-rw-r--r-- | README.md | 8 | ||||
-rw-r--r-- | examples/http/main.go | 4 | ||||
-rw-r--r-- | go.mod | 2 | ||||
-rw-r--r-- | http/server.go | 4 | ||||
-rw-r--r-- | rpc/errors.go | 2 | ||||
-rw-r--r-- | rpc/logger.go | 2 | ||||
-rw-r--r-- | rpc/meta.go | 3 | ||||
-rw-r--r-- | rpc/server.go | 2 | ||||
-rw-r--r-- | rpc/wrapper.go | 2 |
9 files changed, 16 insertions, 13 deletions
@@ -13,7 +13,7 @@ Go 1.18+ required 1. Create JSON-RPC/HTTP server: ```go - import "github.com/neonxp/jsonrpc2/http" + import "go.neonxp.dev/jsonrpc2/http" ... s := http.New() ``` @@ -48,8 +48,8 @@ import ( "context" "net/http" - httpRPC "github.com/neonxp/jsonrpc2/http" - "github.com/neonxp/jsonrpc2/rpc" + httpRPC "go.neonxp.dev/jsonrpc2/http" + "go.neonxp.dev/jsonrpc2/rpc" ) func main() { @@ -86,4 +86,4 @@ Alexander Kiryukhin <i@neonxp.dev> ## License -![GPL v3](https://www.gnu.org/graphics/gplv3-with-text-136x68.png)
\ No newline at end of file +![GPL v3](https://www.gnu.org/graphics/gplv3-with-text-136x68.png) diff --git a/examples/http/main.go b/examples/http/main.go index 5783c05..5c24867 100644 --- a/examples/http/main.go +++ b/examples/http/main.go @@ -5,8 +5,8 @@ import ( "errors" "net/http" - httpRPC "github.com/neonxp/jsonrpc2/http" - "github.com/neonxp/jsonrpc2/rpc" + httpRPC "go.neonxp.dev/jsonrpc2/http" + "go.neonxp.dev/jsonrpc2/rpc" ) func main() { @@ -1,3 +1,3 @@ -module github.com/neonxp/jsonrpc2 +module go.neonxp.dev/jsonrpc2 go 1.18 diff --git a/http/server.go b/http/server.go index cbcb89e..9fae0a0 100644 --- a/http/server.go +++ b/http/server.go @@ -2,7 +2,7 @@ // //Copyright (C) 2022 Alexander Kiryukhin <i@neonxp.dev> // -//This file is part of github.com/neonxp/jsonrpc2 project. +//This file is part of go.neonxp.dev/jsonrpc2 project. // //This program is free software: you can redistribute it and/or modify //it under the terms of the GNU General Public License as published by @@ -23,7 +23,7 @@ import ( "bufio" "net/http" - "github.com/neonxp/jsonrpc2/rpc" + "go.neonxp.dev/jsonrpc2/rpc" ) type Server struct { diff --git a/rpc/errors.go b/rpc/errors.go index 02e66cf..a18c712 100644 --- a/rpc/errors.go +++ b/rpc/errors.go @@ -2,7 +2,7 @@ // //Copyright (C) 2022 Alexander Kiryukhin <i@neonxp.dev> // -//This file is part of github.com/neonxp/jsonrpc2 project. +//This file is part of go.neonxp.dev/jsonrpc2 project. // //This program is free software: you can redistribute it and/or modify //it under the terms of the GNU General Public License as published by diff --git a/rpc/logger.go b/rpc/logger.go index 9b1e0cc..b38e990 100644 --- a/rpc/logger.go +++ b/rpc/logger.go @@ -2,7 +2,7 @@ // //Copyright (C) 2022 Alexander Kiryukhin <i@neonxp.dev> // -//This file is part of github.com/neonxp/jsonrpc2 project. +//This file is part of go.neonxp.dev/jsonrpc2 project. // //This program is free software: you can redistribute it and/or modify //it under the terms of the GNU General Public License as published by diff --git a/rpc/meta.go b/rpc/meta.go new file mode 100644 index 0000000..77de69b --- /dev/null +++ b/rpc/meta.go @@ -0,0 +1,3 @@ +package rpc + +type Meta map[string]interface{} diff --git a/rpc/server.go b/rpc/server.go index ff9fcc5..4fa004d 100644 --- a/rpc/server.go +++ b/rpc/server.go @@ -2,7 +2,7 @@ // //Copyright (C) 2022 Alexander Kiryukhin <i@neonxp.dev> // -//This file is part of github.com/neonxp/jsonrpc2 project. +//This file is part of go.neonxp.dev/jsonrpc2 project. // //This program is free software: you can redistribute it and/or modify //it under the terms of the GNU General Public License as published by diff --git a/rpc/wrapper.go b/rpc/wrapper.go index 5ef7a24..bfcd381 100644 --- a/rpc/wrapper.go +++ b/rpc/wrapper.go @@ -2,7 +2,7 @@ // //Copyright (C) 2022 Alexander Kiryukhin <i@neonxp.dev> // -//This file is part of github.com/neonxp/jsonrpc2 project. +//This file is part of go.neonxp.dev/jsonrpc2 project. // //This program is free software: you can redistribute it and/or modify //it under the terms of the GNU General Public License as published by |