common

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidColor

func IsValidColor(field string, color string) error

func IsValidName

func IsValidName(value string, field string) error

IsValidName checks if the value is a valid name for YAMLtecture conventions.

func IsValidPixel

func IsValidPixel(field string, value string) error

func IsValidValue

func IsValidValue(value string, field string) error

IsValidValue checks if the value is a valid attribute value for YAMLtecture conventions.

func PrintError added in v0.2.0

func PrintError(message string, err error)

printError prints error message to stderr and exits with code 1

func SanitizeLabel

func SanitizeLabel(label string) string

SanitizeLabel escapes reserved characters in a Mermaid flowchart node label. It prefixes each reserved character with a backslash.

Types

This section is empty.

Jump to

Keyboard shortcuts

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