utils

package
v0.0.0-...-30cc0c6 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBody

func DecodeBody[T any](r io.Reader) (T, error)

func EncryptPassword

func EncryptPassword(password string, cost int) ([]byte, error)

func Map

func Map[T any](entities []T, mapper func(T) bool) []T

func ToBsonDoc

func ToBsonDoc(v any) (*bson.D, error)

func ToObjectID

func ToObjectID(id string) primitive.ObjectID

Types

This section is empty.

Jump to

Keyboard shortcuts

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