convertutil

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OptionalString

func OptionalString[T interface{ String() string }](opt mo.Option[T]) mo.Option[string]

OptionalString converts an option of a Stringer-like type into an option of string. If the option is empty, it returns mo.None[string]().

func Stringify

func Stringify[T interface{ String() string }](items []T) []string

Stringify converts a slice of Stringer-like values into a slice of strings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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