experimentname

package
v3.31.0-beta Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package experimentname contains code to manipulate experiment names.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Name added in v3.31.0

type Name struct {
	// Base is the canonical base experiment name.
	Base string

	// Version is the OPTIONAL version selector after the "@".
	// An empty Version means the default/unversioned experiment.
	Version string
}

Name is the parsed representation of an experiment name using the "base@version" canonical syntax

func Parse added in v3.31.0

func Parse(raw string) Name

Parse parses an experiment name that may use the "base@version" syntax.

It splits on the first "@" and canonicalizes ONLY the base name, keeping the version selector verbatim.

func (Name) String added in v3.31.0

func (n Name) String() string

String returns the canonical string representation of the name: just the base name when there is no version, or "base@version" otherwise.

Jump to

Keyboard shortcuts

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