convert

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuiltinID

func BuiltinID(tenant, id string) string

BuiltinID returns the stable, tenant-specific ID for a built-in resource. It keeps the 20-character xid-compatible form required by URNs.

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 ScheduleLabel

func ScheduleLabel(cron, timezone string) string

ScheduleLabel returns a human-readable cron schedule label.

func SlugLabel

func SlugLabel(slug string) string

SlugLabel formats a provider/app slug for display (e.g. "git_hub" → "Git Hub").

func Strings

func Strings(values []string) []string

Strings trims, drops empties, dedupes, and sorts a string list.

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