convutil

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Float64

func Float64(value interface{}) (f float64, err error)

转换为 float64 类型

func Int64

func Int64(value interface{}) (i int64, err error)

转换为 int64 类型

func PointValue

func PointValue(value interface{}, valueType config.ValueType) (interface{}, error)
点位类型转换

仅支持三种数据类型:int、float、string

func String

func String(value interface{}) (s string, err error)

转换为 string 类型

func Struct

func Struct(from any, to any) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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