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

cmdtest

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ExpHumanId = "\x07human-id\x07"
View Source
const ExpISO8601 = "\x07iso8601\x07"
View Source
const ExpId = "\x07id\x07"
View Source
const ExpOrgModeDate = "\x07org-mode-date\x07"
View Source
const ExpTimestamp = "\x07timestamp\x07"

Variables

View Source
var Update = flag.Bool("Update", false, "Update golden files")

Functions

func MakeExpectedRegex

func MakeExpectedRegex(input string) string

MakeExpectedRegex transform a raw string of an expected output into a regex suitable for testing. Some markers like ExpId are available to substitute the appropriate regex for element that can vary randomly.

Types

This section is empty.

Jump to

Keyboard shortcuts

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