conversion

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package conversion provides utilities for converting between types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToBool

func ToBool(value interface{}) (bool, error)

ToBool converts a value to bool.

func ToFloat64

func ToFloat64(value interface{}) (float64, error)

ToFloat64 converts a value to float64.

func ToInt

func ToInt(value interface{}) (int, error)

ToInt converts a value to int.

func ToMap

func ToMap(value interface{}) (map[string]interface{}, error)

ToMap converts a value to map[string]interface{}.

func ToSlice

func ToSlice(value interface{}) ([]interface{}, error)

ToSlice converts a value to []interface{}.

func ToString

func ToString(value interface{}) (string, error)

ToString converts a value to string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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