Files
akvorado/common/helpers/yaml/marshal.go
2025-07-29 07:42:49 +02:00

14 lines
437 B
Go

// SPDX-FileCopyrightText: 2023 Free Mobile
// SPDX-License-Identifier: AGPL-3.0-only
package yaml
import "gopkg.in/yaml.v3"
// Marshal serializes the value provided into a YAML document. The structure of
// the generated document will reflect the structure of the value itself. Maps
// and pointers (to struct, string, int, etc) are accepted as the in value.
func Marshal(in any) (out []byte, err error) {
return yaml.Marshal(in)
}