hash

package
v0.0.0-...-eab4cf6 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidField = fmt.Errorf("invalid field for user store")

Functions

This section is empty.

Types

type UserStore

type UserStore map[int]models.User

func NewUserStore

func NewUserStore(users []models.User) UserStore

func (UserStore) ListFields

func (UserStore) ListFields() []string

func (UserStore) Search

func (s UserStore) Search(field, query string) ([]models.User, error)

Jump to

Keyboard shortcuts

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