utils

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Conv2Float64

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

Conv2Float64 转换为 float64 类型

func Conv2Int64

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

Conv2Int64 转换为 int64 类型

func Conv2String

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

Conv2String 转换为 string 类型

func Conv2Struct

func Conv2Struct(from any, to any) error

func ConvPointType

func ConvPointType(value interface{}, valueType config.ValueType) (interface{}, error)

ConvPointType 点位类型转换 仅支持三种数据类型:int、float、string

Types

This section is empty.

Jump to

Keyboard shortcuts

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