validate

package
v0.0.0-...-8bff5d1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package validate makes sure to validate structs and fields to avoid making invalid queries to the database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SearchQuery

func SearchQuery(query string) error

SearchQuery returns an error if the query contains invalid characters.

func Struct

func Struct(ctx context.Context, v interface{}) error

Struct returns an error if any of the struct's fields is invalid.

func UUID

func UUID(s string) error

UUID returns an error if the uuid received is invalid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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