json

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package json contains implementation of format interfaces for JSON document type.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

type Writer struct{}

Writer offers support for JSON format.

func (*Writer) WriteFooter

func (j *Writer) WriteFooter(file *os.File) error

WriteFooter writes the JSON closing array rune to the footer.

func (*Writer) WriteHeader

func (j *Writer) WriteHeader(file *os.File, columns []string) error

WriteHeader in the case of JSON writes opening array rune: "[".

func (*Writer) WriteRecord

func (j *Writer) WriteRecord(file *os.File, row map[string]string, index int) error

WriteRecord encodes and writes a record to file.

Jump to

Keyboard shortcuts

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