validator

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package validator provides generator validator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rule

type Rule func(afero.Fs, string, string) error

Rule describes validation rule.

type Validator

type Validator []Rule

Validator describes generator validator.

func New

func New() *Validator

New returns new Validator.

func (Validator) Validate

func (v Validator) Validate(fs afero.Fs, info, directory string) (res error)

Validate validates generator input args.

Directories

Path Synopsis
Package errors provides validation errors.
Package errors provides validation errors.
Package rules provides validator rules.
Package rules provides validator rules.

Jump to

Keyboard shortcuts

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