meta

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package meta provides metadata entries for the handlers of content types

Index

Constants

View Source
const (
	Separator = metadata.Separator
)

Variables

This section is empty.

Functions

func New

func New(ns, key string, value any) metadata.Metadata

New returns a metadata entry

func NewImage

func NewImage(ns, key string, data []byte) metadata.Metadata

NewImage returns a metadata entry which is the encoded image data, such as a JPEG or PNG image, or nil when the namespace or key isn't an identifier, or the data isn't an image which can be decoded

func NewText

func NewText(ns, key string, value any, text string) metadata.Metadata

NewText returns a metadata entry whose value is formatted as the text, such as an f-number of 2.8 as "f/2.8", which is its Value, rather than the value itself, which is its Any, and in JSON. The text is the value, formatted as New does, when it's empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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