golden

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenGoldenContent

func GenGoldenContent(filePath string, data []byte) (string, error)

GenGoldenContent generates golden content for the given file path and data.

If the data is invalid, the error message is returned as the golden content. Otherwise, the golden content is the marshaled YAML data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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