helpers

package
v0.0.0-...-a5f9b48 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnglishTranslator

func EnglishTranslator() ut.Translator

func GetBearerToken

func GetBearerToken(headerGetter types.HeaderGetter) (string, error)

func GetCtxLocal

func GetCtxLocal[TValue interface{}](ctx types.CtxLocalsGetter, key string) (TValue, error)

Types

type ValidationErrors

type ValidationErrors map[string]string

func Validate

func Validate(data any) ValidationErrors

Jump to

Keyboard shortcuts

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