json

package
v0.0.0-...-b3f3fbb Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2015 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package json provides special types which can be used in conjunction with JSON serialization

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequiredInt64

type RequiredInt64 struct {
	Set   bool
	Int64 int64
}

Used as a JSON type

The Set flag indicates whether an unmarshaling actually happened on the type

func (RequiredInt64) MarshalJSON

func (r RequiredInt64) MarshalJSON() ([]byte, error)

func (*RequiredInt64) UnmarshalJSON

func (r *RequiredInt64) UnmarshalJSON(raw []byte) error

type RequiredInt8

type RequiredInt8 struct {
	Set  bool
	Int8 int8
}

func (RequiredInt8) MarshalJSON

func (r RequiredInt8) MarshalJSON() ([]byte, error)

func (*RequiredInt8) UnmarshalJSON

func (r *RequiredInt8) UnmarshalJSON(raw []byte) error

Jump to

Keyboard shortcuts

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