util

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalYAML added in v1.2.1

func MarshalYAML(v interface{}) ([]byte, error)

MarshalYAML marshals the given value into YAML format.

func Ptr

func Ptr[T any](v T) *T

Ptr returns a pointer to v.

func UnmarshalYAML added in v1.2.1

func UnmarshalYAML(in []byte, out interface{}) error

UnmarshalYAML unmarshals the given YAML data into the given value.

func ValueIf

func ValueIf[T any](cond bool, v, def T) T

ValueIf returns v if cond is true, otherwise def.

Types

This section is empty.

Jump to

Keyboard shortcuts

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