data

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2014 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DecodeString = decodeString
View Source
var EncodeString = encodeString

Functions

func Decode

func Decode(msg string) (map[string][]string, error)

func Encode

func Encode(obj map[string][]string) string

Types

type Message

type Message string

func Empty

func Empty() Message

func Parse

func Parse(args []string) Message

func (Message) Add

func (m Message) Add(k, v string) Message

func (Message) Bytes

func (m Message) Bytes() []byte

func (Message) Del

func (m Message) Del(k string) Message

func (Message) Get

func (m Message) Get(k string) []string

func (Message) GetOne added in v0.12.0

func (m Message) GetOne(k string) string

GetOne returns the last value added at the key k, or an empty string if there is no value.

func (Message) Pretty

func (m Message) Pretty() string

func (Message) Set

func (m Message) Set(k string, v ...string) Message

func (Message) String

func (m Message) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL