validator

package
v0.8.1-0...-1b3defc Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIValidatorErr

func APIValidatorErr(err error) *xendit.Error

APIValidatorErr generate a xendit.Error from a validator error

func ValidateRequired

func ValidateRequired(ctx context.Context, value interface{}) error

ValidateRequired validate fields that are required in the struct with `valiate:"required"` tag

Types

This section is empty.

Jump to

Keyboard shortcuts

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