ing
This commit is contained in:
parent
6e59e6b669
commit
b77b975069
|
@ -6,3 +6,5 @@ import:
|
|||
- package: gopkg.in/natefinch/npipe.v2
|
||||
- package: git.loafle.net/commons_go/websocket_fasthttp
|
||||
- package: git.loafle.net/commons_go/util
|
||||
- package: github.com/json-iterator/go
|
||||
version: 1.1.3
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
package json
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"io"
|
||||
|
||||
"git.loafle.net/commons_go/rpc/codec"
|
||||
"git.loafle.net/commons_go/rpc/protocol"
|
||||
jsoniter "github.com/json-iterator/go"
|
||||
)
|
||||
|
||||
var json = jsoniter.ConfigCompatibleWithStandardLibrary
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Codec
|
||||
// ----------------------------------------------------------------------------
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
package json
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"git.loafle.net/commons_go/rpc/codec"
|
||||
crp "git.loafle.net/commons_go/rpc/protocol"
|
||||
cuej "git.loafle.net/commons_go/util/encoding/json"
|
||||
jsoniter "github.com/json-iterator/go"
|
||||
)
|
||||
|
||||
var json = jsoniter.ConfigCompatibleWithStandardLibrary
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// ClientNotificationCodec
|
||||
// ----------------------------------------------------------------------------
|
||||
|
|
|
@ -1,15 +1,17 @@
|
|||
package json
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"git.loafle.net/commons_go/rpc/codec"
|
||||
"git.loafle.net/commons_go/rpc/protocol"
|
||||
crp "git.loafle.net/commons_go/rpc/protocol"
|
||||
jsoniter "github.com/json-iterator/go"
|
||||
)
|
||||
|
||||
var json = jsoniter.ConfigCompatibleWithStandardLibrary
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// ClientResponseCodec
|
||||
// ----------------------------------------------------------------------------
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
package json
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"io"
|
||||
|
||||
"git.loafle.net/commons_go/rpc/codec"
|
||||
"git.loafle.net/commons_go/rpc/protocol"
|
||||
jsoniter "github.com/json-iterator/go"
|
||||
)
|
||||
|
||||
var json = jsoniter.ConfigCompatibleWithStandardLibrary
|
||||
|
||||
var null = json.RawMessage([]byte("null"))
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
|
|
@ -1,15 +1,17 @@
|
|||
package json
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"io"
|
||||
|
||||
"git.loafle.net/commons_go/rpc/codec"
|
||||
"git.loafle.net/commons_go/rpc/protocol"
|
||||
crp "git.loafle.net/commons_go/rpc/protocol"
|
||||
cuej "git.loafle.net/commons_go/util/encoding/json"
|
||||
jsoniter "github.com/json-iterator/go"
|
||||
)
|
||||
|
||||
var json = jsoniter.ConfigCompatibleWithStandardLibrary
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Request
|
||||
// ----------------------------------------------------------------------------
|
||||
|
|
|
@ -1,13 +1,16 @@
|
|||
package json
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"reflect"
|
||||
|
||||
jsoniter "github.com/json-iterator/go"
|
||||
|
||||
cur "git.loafle.net/commons_go/util/reflect"
|
||||
)
|
||||
|
||||
var json = jsoniter.ConfigCompatibleWithStandardLibrary
|
||||
|
||||
func convertParamsToStringArray(params []interface{}) ([]string, error) {
|
||||
var values []string
|
||||
if nil == params || 0 == len(params) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user