userlabel

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package userlabel is how the runtime names a person in text a human reads. It follows the same cascade as Miren Cloud, so a user reads the same in the CLI as in cloud's notifications.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Label

func Label(name, email, subject string) string

Label names a person in one line: "Ada Lovelace (ada@example.com)" when both name and email are known, otherwise whichever of email, name, or subject is set, in that order. The email beats the name on its own because it is unambiguous; the subject is the last resort because it is usually an opaque id. An empty result means there was nothing to go on, and the caller picks the placeholder that fits.

Types

This section is empty.

Jump to

Keyboard shortcuts

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