utils

package
v0.0.0-...-fa930de Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatError

func FormatError(errString string) map[string]string

FormatError takes a string as an argument and returns a map of strings to strings containing error messages.

It checks if the string contains certain keywords and adds the corresponding error message to the map. If the map is empty, it adds an "Incorrect Details" error message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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