qconvert

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB convertDatabase
View Source
var DateTime convertDateTime

Functions

func ToAny

func ToAny[T any](raw any) T

ToAny

@Description: 将任意类型转为指定类型,此方法如果发生会抛出
@param raw 原始对象
@return T 指定类型

func ToAnyError

func ToAnyError[T any](raw any) (T, error)

ToAnyError

@Description: 将任意类型转为指定类型,此方法如果发生会返回
@param raw 原始对象
@return T, error 指定类型, 异常

Types

This section is empty.

Jump to

Keyboard shortcuts

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