utils

package
v0.0.0-...-5e137a4 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractParam

func ExtractParam(r *http.Request) string

ExtractParam the last parameter from `/something/<id>`

func Find

func Find(slice []string, val string) (int, bool)

Find is used to find a string in a slice

func PaginateMeetings

func PaginateMeetings(meetings []bson.M, pageArr []string) ([]bson.M, bool)

PaginateMeetings returns 100 items in a page

func RandStringRunes

func RandStringRunes(n int) string

RandStringRunes returns a random string

Types

This section is empty.

Jump to

Keyboard shortcuts

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