package json

import "k8s.io/client-go/1.5/pkg/third_party/forked/golang/json"

Package json is forked from the Go standard library to enable us to find the field of a struct that a given JSON key maps to.

Index

Functions

func LookupPatchMetadata

func LookupPatchMetadata(t reflect.Type, jsonField string) (reflect.Type, string, string, error)

Finds the patchStrategy and patchMergeKey struct tag fields on a given struct field given the struct type and the JSON name of the field. TODO: fix the returned errors to be introspectable.

Source Files

fields.go

Version
v1.5.2
Published
Feb 25, 2021
Platform
js/wasm
Imports
8 packages
Last checked
1 minute ago

Tools for package owners.