modulepackage
0.1.0-beta.1
Repository: https://github.com/bdreece/echo-validator.git
Documentation: pkg.go.dev
# README
echo-validator
A basic implementation of echo.Validator using github.com/goplayground/validator/v10.
Usage
The echo-validator package provides an easy-to-use global instance of Validator
that can
be configured with echo.Echo
as follows:
package main
import (
echovalidator "github.com/bdreece/echo-validator"
"github.com/labstack/echo/v4"
)
func main() {
e := echo.New()
e.Validator = echovalidator.Default
/* ... */
}
License
MIT License
Copyright (c) 2024 Brian Reece
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# Functions
Creates a new [Validator].
# Variables
A global singleton [Validator].