rtlamr: github.com/bemasher/rtlamr/csv Index | Files

package csv

import "github.com/bemasher/rtlamr/csv"

Index

Package Files

csv.go

type Encoder Uses

type Encoder struct {
    // contains filtered or unexported fields
}

An Encoder writes CSV records to an output stream.

func NewEncoder Uses

func NewEncoder(w io.Writer) *Encoder

NewEncoder returns a new encoder that writes to w.

func (*Encoder) Encode Uses

func (enc *Encoder) Encode(v interface{}) (err error)

Encode writes a CSV record representing v to the stream followed by a newline character. Value given must implement the Recorder interface.

type Recorder Uses

type Recorder interface {
    Record() []string
}

Produces a list of fields making up a record.

Package csv imports 3 packages (graph) and is imported by 2 packages. Updated 2016-07-16. Refresh now. Tools for package owners.