extjson

package
v0.17.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEmpty

func IsEmpty(j *apiextv1.JSON) bool

func TryFromYAML

func TryFromYAML(s string) *apiextv1.JSON

TryFromYAML attempts to convert a YAML string to apiextv1.JSON. It returns nil if the input is empty or if the conversion fails, effectively swallowing any parsing errors.

func TryToYAML

func TryToYAML(j *apiextv1.JSON) string

TryToYAML attempts to convert apiextv1.JSON to a YAML string. It returns an empty string if the input is nil, contains no data, or if the conversion from JSON to YAML fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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