codec - ActiveState ActiveGo 1.8
...

Package codec

import "github.com/gogo/protobuf/codec"
Overview
Index

Overview ▾

Index ▾

Package files

codec.go

type Codec

type Codec interface {
    Marshal(v interface{}) ([]byte, error)
    Unmarshal(data []byte, v interface{}) error
    String() string
}

func New

func New(size int) Codec