convert

package
v0.0.0-...-66224dc Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToStr

func ToStr(object interface{}) (string, error)

ToStr : 转换成字符串

支持的类型 int , uint

func ToUint

func ToUint(object interface{}) (uint, error)

ToUint : 转换成 uint

支持的类型 string

func ToUint64

func ToUint64(object interface{}) (uint64, error)

ToUint64 : 转换成 uint64

支持的类型 string

Types

type Err

type Err struct {
	SrcType string
	Target  string
	Err     error
}

Err : 转换异常信息

-------------------

*** author: whmmm ***

*** date: 2021-12-15 11:54 ***

func (*Err) Error

func (e *Err) Error() string

Jump to

Keyboard shortcuts

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