metadata

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package metadata embeds key/value metadata in native executable structures.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Embed

func Embed(path string, entries []Entry) error

Embed detects the executable format and embeds entries using its native metadata mechanism.

func Validate

func Validate(entries []Entry) error

Validate checks metadata keys and rejects duplicates.

Types

type Entry

type Entry struct {
	Key   string
	Value string
}

Entry is one native metadata key/value pair.

Jump to

Keyboard shortcuts

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