encoding

module
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: Apache-2.0

README

CI PkgGoDev

encoding

This library has been forked from https://github.com/kubernetes/apimachinery/tree/v0.29.3/pkg/util so that it can easily used in non-k8s related projects.

Why?

Go encoding/json package will automatically convert any number into float64, when any json string is unmarshled into a map[string]interface{}. This is a common use-case for Kubernetes libraries. To fix this issue, Kubernetes uses their own version of json library (a wrapper) that correctly converts to int64/float64. This library is forked from Kubernetes so that it can be used in various places without the whole Kubernetes dependency.

Directories

Path Synopsis
csv
types
Package types provides a collection of Golang types with JSON marshaling support
Package types provides a collection of Golang types with JSON marshaling support
sql

Jump to

Keyboard shortcuts

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