Documentation
¶
Overview ¶
- Copyright (C) 2020-2026 Arm Limited or its affiliates and Contributors. All rights reserved.
- SPDX-License-Identifier: Apache-2.0
Package yaml preserves the existing YAML import path.
Deprecated: Use github.com/ARM-software/golang-utils/utils/serialisation/yaml.
Index ¶
- Variables
- func IsYAMLFile(extension string) bool
- func Marshal(v any) ([]byte, error)
- func MarshalWithContext(ctx context.Context, v any) ([]byte, error)
- func ToJSON(data []byte) ([]byte, error)
- func Unmarshal(data []byte, v any) error
- func UnmarshallWithContext(ctx context.Context, data []byte, v any) error
- type Decoder
- type Encoder
Constants ¶
This section is empty.
Variables ¶
var IsValidYAML = serialisation.IsValidYAML
IsValidYAML validates YAML strings and byte slices.
var YAMLExtensions = serialisation.YAMLExtensions
YAMLExtensions lists the file extensions considered YAML files.
Functions ¶
func IsYAMLFile ¶
IsYAMLFile reports whether an extension belongs to a YAML file.
func MarshalWithContext ¶
MarshalWithContext encodes a value to YAML with a context-aware encoder.