package encoding

import "github.com/aws/smithy-go/encoding"

Index

Functions

func EncodeFloat

func EncodeFloat(dst []byte, v float64, bits int) []byte

EncodeFloat encodes a float value as per the stdlib encoder for json and xml protocol This encodes a float value into dst while attempting to conform to ES6 ToString for Numbers

Based on encoding/json floatEncoder from the Go Standard Library https://golang.org/src/encoding/json/encode.go

Source Files

doc.go encoding.go

Directories

PathSynopsis
encoding/cborPackage cbor implements partial encoding/decoding of concise binary object representation (CBOR) described in [RFC 8949].
encoding/httpbinding
encoding/json
encoding/xmlPackage xml holds the XMl encoder utility.
Version
v1.22.3 (latest)
Published
Feb 17, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
3 weeks ago

Tools for package owners.