conv

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: MIT Imports: 1 Imported by: 3

Documentation

Overview

Package conv offers funcs for converting values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToFloat

func ToFloat(v any) float64

ToFloat converts int or int64 to float64 or default value if nil.

func ToInt

func ToInt(v any) int

ToInt converts int64 or float64 to int or default value if nil.

func ToString

func ToString(v any) string

ToString converts any to string (equivalent to fmt.Sprint).

Types

This section is empty.

Jump to

Keyboard shortcuts

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