stringutil

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(value string) string

Hash bcrypt hashes a password using a default cost.

func MapTrimSpace

func MapTrimSpace(s string, _ int) string

MapTrimSpace is a lo.Map-compatible function that trims leading and trailing spaces from its arguments.

func Pluralise

func Pluralise(count int, singular, plural string) string

Pluralise pluralises a string based on count.

func RenderMarkdown

func RenderMarkdown(s string) string

RenderMarkdown renders some markdown.

func VerifyHashAndPassword

func VerifyHashAndPassword(hash string, password string) bool

VerifyHashAndPassword verifies a bcrypt hash against a password.

Types

This section is empty.

Jump to

Keyboard shortcuts

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