funccup

package
v1.12.6 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Description: This package provides a set of functions for functional programming in Go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

type Validator func(fieldValue reflect.Value, fieldName string) error

Validator is a function type that performs validation on a string value.

It takes three parameters:

- a string which could be the name or key of the value being validated,

- the value being validated, of type reflect.Value,

- a string which could be used for additional context or error message.

The function returns an error if the validation fails.

Jump to

Keyboard shortcuts

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