convert

package
v0.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64

func Base64(input string) string

Base64 returns a base64 encoded string

func Color

func Color(v string) string

Color returns a color for a hashed string (only tailwind colors)

func Float

func Float(v string, defaultValue float64) float64

Float returns a float value or a default value

func Float64

func Float64(value any) (float64, error)

func Int

func Int(v string, defaultValue int) int

Int returns an integer value or a default value

func Int64

func Int64(value any) (int64, error)

func Label

func Label(input string) string

func Since

func Since(t time.Time) string

Since returns a human readable time format

func TitleCase

func TitleCase(input string) string

func Uint64

func Uint64(value any) (uint64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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