convert

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package convert contains functions to convert interface{} values into various other types

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToBool

func ToBool(v interface{}) bool

ToBool tries to convert v into an int

func ToFloat

func ToFloat(v interface{}) (float64, bool)

ToFloat tries to convert v into a float

func ToInt

func ToInt(v interface{}) (int, bool)

ToInt tries to convert v into an int

func ToString

func ToString(v any) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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