helpers

package
v0.0.0-...-96f7096 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Boolp

func Boolp(b bool) *bool

func Contains

func Contains(strings []string, contains string) bool

Contains Check if a specific value is in a slice of strings

func SlugHashPrefixTruncate

func SlugHashPrefixTruncate(slug slug.Slug, prefix string, maxLength int) string

func StringWithFallback

func StringWithFallback(strp *string, fallback string) string

func Strp

func Strp(s string) *string

func Truncate

func Truncate(s string, length int) string

Truncate will truncate the string s to the given length

Types

This section is empty.

Jump to

Keyboard shortcuts

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