convert

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package convert provides shared type conversion helpers used across multiple internal packages (cli, compat).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolsToAny

func BoolsToAny(values []bool) []any

BoolsToAny converts a bool slice to []any.

func FloatsToAny

func FloatsToAny(values []float64) []any

FloatsToAny converts a float64 slice to []any.

func IntsToAny

func IntsToAny(values []int) []any

IntsToAny converts an int slice to []any.

func ParseStringList

func ParseStringList[T any](values []string, parse func(string) (T, error)) ([]T, error)

ParseStringList parses each element of values using parse, returning the converted slice or the first parse error encountered.

func StringsToAny

func StringsToAny(values []string) []any

StringsToAny converts a string slice to []any.

Types

This section is empty.

Jump to

Keyboard shortcuts

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