Help us shape the future of Go! Take the 2026 Go Developer Survey

indexutil

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromJSON

func FromJSON[T any](ctx context.Context, ptr *T, raw []byte)

func FromYAML added in v0.5.0

func FromYAML[T any](ctx context.Context, ptr *T, raw []byte)

func ToJSON

func ToJSON(ctx context.Context, value any) []byte

func ToYAML added in v0.5.0

func ToYAML(ctx context.Context, value any) []byte

func WithBuffer

func WithBuffer(fn func(*bytes.Buffer))

func WriteFile

func WriteFile(ctx context.Context, filePath string, contents []byte, mode fs.FileMode)

Types

This section is empty.

Jump to

Keyboard shortcuts

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