userfmt

package
v2.4.6 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package userfmt expands the username templates yarilo-auth and OAuth2 share.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(template, user string) (string, error)

Format expands %u, %{user}, %n and %d, each with an optional L to lowercase; an unknown substitution is an error, so a typo fails at startup.

Types

This section is empty.

Jump to

Keyboard shortcuts

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