numbers

package
v0.0.0-...-6d0e2ae Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package numbers provides JSON number encoding and decode for use in codec and mutable package. Other implementation may use the functions here for a consistent encoding of numbers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeFloat64

func DecodeFloat64(b []byte) (float64, error)

DecodeFloat64 attempts parse the provided value to float64.

func DecodeInt64

func DecodeInt64(b []byte) (int64, error)

DecodeInt64 attempts parse the provided value to int64.

func DecodeUint64

func DecodeUint64(b []byte) (uint64, error)

DecodeUint64 attempts parse the provided value to int64.

func EncodeFloat64

func EncodeFloat64(n float64) []byte

EncodeFloat64 encodes the provided value to a byte slice.

func EncodeInt64

func EncodeInt64(n int64) []byte

EncodeInt64 encodes the provided value to a byte slice.

func EncodeUint64

func EncodeUint64(n uint64) []byte

EncodeUint64 encodes the provided value to a byte slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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