yaml

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TempFile

func TempFile(name string, v interface{}) (string, error)

TempFile serializes v to a file with the given name and stores it in a temp directory. Returns the path to the temp file if successful.

func WriteFile

func WriteFile(name string, v interface{}) error

WriteFile serializes v to a file with the given name.

func WriteFileWithFileMode added in v0.17.0

func WriteFileWithFileMode(name string, v interface{}, mode os.FileMode) error

WriteFileWithFileMode serializes v to a file with the given name with specified FileMode.

Types

This section is empty.

Jump to

Keyboard shortcuts

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