goresp: github.com/0xC0D3D00D/goresp Index | Files

package goresp

import "github.com/0xC0D3D00D/goresp"

Index

Package Files

decode.go encode.go

Variables

var (
    // ErrUnexpectedEOF thrown when unmarshaling an incomplete message
    ErrUnexpectedEOF = errors.New("Unexpected EOF")
    // ErrInvalidMessage thrown when the message is not in any form of standard RESP format
    ErrInvalidMessage = errors.New("Invalid message")
)
var (
    ErrUnsupportedType = errors.New("Unsupported Type")
)

func Marshal Uses

func Marshal(v interface{}) ([]byte, error)

func Unmarshal Uses

func Unmarshal(reader io.Reader) (interface{}, error)

Unmarshal decodes RESP messages to its corresponding golang type

Package goresp imports 3 packages (graph). Updated 2020-02-28. Refresh now. Tools for package owners.