utils

package
v0.0.0-...-fdfac4e Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelCaseToSentenceCase

func CamelCaseToSentenceCase(str string) string

func CapitalizeFirstLetter

func CapitalizeFirstLetter(str string) string

func Includes

func Includes[SliceType constraints.Ordered](array []SliceType, element SliceType) bool

func RandomString32

func RandomString32() string

func SafeStringify

func SafeStringify(value interface{}) string

func Ternary

func Ternary[T any](condition bool, trueValue, falseValue T) T

Types

type ComponentSpec

type ComponentSpec interface {
	Spec() templ.Component
}

Jump to

Keyboard shortcuts

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