metadata

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteMetadata

func DeleteMetadata(ctx context.Context, logger *slog.Logger, file string) error

DeleteMetadata removes a metadata file and its directory if empty.

func ReadMetadata

func ReadMetadata[T any](ctx context.Context, logger *slog.Logger, file string) (T, error)

func ReadRaw

func ReadRaw(ctx context.Context, logger *slog.Logger, file string) ([]byte, error)

ReadRaw reads the metadata file and returns the raw bytes for external decoding.

func WriteMetadata

func WriteMetadata(ctx context.Context, logger *slog.Logger, metadata any, file string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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