checker/check_func.go
Onur Cinar bdb9c8ea9b
Version v2. (#158)
# Describe Request

Version v2.

# Change Type

New version.
2024-12-29 05:12:21 -08:00

11 lines
406 B
Go

// Copyright (c) 2023-2024 Onur Cinar.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// https://github.com/cinar/checker
package v2
// CheckFunc is a function that takes a value of type T and performs
// a check on it. It returns the resulting value and any error that
// occurred during the check.
type CheckFunc[T any] func(value T) (T, error)