From d4708a3665e546eea57611b17441ad9b8c89e9a4 Mon Sep 17 00:00:00 2001 From: Alexander Kiryukhin Date: Thu, 24 Mar 2022 18:37:38 +0300 Subject: [PATCH] Changed package name to `go.neonxp.dev/jsonrpc2` --- README.md | 8 ++++---- examples/http/main.go | 4 ++-- go.mod | 2 +- http/server.go | 4 ++-- rpc/errors.go | 2 +- rpc/logger.go | 2 +- rpc/meta.go | 3 +++ rpc/server.go | 2 +- rpc/wrapper.go | 2 +- 9 files changed, 16 insertions(+), 13 deletions(-) create mode 100644 rpc/meta.go diff --git a/README.md b/README.md index 2fdbd9a..5938fdf 100644 --- a/README.md +++ b/README.md @@ -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 ## 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() { diff --git a/go.mod b/go.mod index caa2afb..c419096 100644 --- a/go.mod +++ b/go.mod @@ -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 // -//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 // -//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 // -//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 // -//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 // -//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