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

validate

package
v2.0.0-alpha-3 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd() *cobra.Command

Types

type ValidationError

type ValidationError struct {
	Message string `json:"message" yaml:"message"`
}

ValidationError represents a structured validation error

type ValidationResult

type ValidationResult struct {
	Passed bool             `json:"passed" yaml:"passed"`
	Error  *ValidationError `json:"error,omitempty" yaml:"error,omitempty"`
}

ValidationResult represents the structured output of validation

Jump to

Keyboard shortcuts

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