Help us shape the future of Go! Take the 2026 Go Developer Survey

infer

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Overview

Package infer proposes allowlist formats: a regular expression that matches every observed value of something that changes on its own (a time, a token, an id), and as little else as it can.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pattern

func Pattern(values []string) string

Pattern returns a format for the values, or "" when they are all equal. Values with the same punctuation in the same places get a format that keeps it (\d{4}-\d{2}-\d{2}); others get one class for the whole value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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