convert

package
v0.0.0-...-35fa672 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StrConvert

type StrConvert string

StrConvert 字符串的convert类型

func NewConvert

func NewConvert(v string) *StrConvert

NewConvert 新建一个convert类型

func (*StrConvert) Bool

func (s *StrConvert) Bool() (bool, error)

Bool 返回bool对象

func (*StrConvert) Close

func (s *StrConvert) Close() error

Close 继承closer接口

func (*StrConvert) Float32

func (s *StrConvert) Float32() (float32, error)

Float32 返回对应的float对象

func (*StrConvert) Float64

func (s *StrConvert) Float64() (float64, error)

Float64 返回对应的float对象

func (*StrConvert) Int

func (s *StrConvert) Int() (int, error)

Int 返回int对象

func (*StrConvert) Int16

func (s *StrConvert) Int16() (int16, error)

Int16 返回对应的int对象

func (*StrConvert) Int32

func (s *StrConvert) Int32() (int32, error)

Int32 返回对应的int对象

func (*StrConvert) Int64

func (s *StrConvert) Int64() (int64, error)

Int64 处理int64的对象,防止bigint的溢出

func (*StrConvert) Int8

func (s *StrConvert) Int8() (int8, error)

Int8 返回对应的int对象

func (*StrConvert) String

func (s *StrConvert) String() string

String 返回原始对象

func (*StrConvert) Uint

func (s *StrConvert) Uint() (uint, error)

Uint 返回对应的int对象

func (*StrConvert) Uint16

func (s *StrConvert) Uint16() (uint16, error)

Uint16 返回对应的int对象

func (*StrConvert) Uint32

func (s *StrConvert) Uint32() (uint32, error)

Uint32 返回对应的int对象

func (*StrConvert) Uint64

func (s *StrConvert) Uint64() (uint64, error)

Uint64 返回对应的uint64对象

func (*StrConvert) Uint8

func (s *StrConvert) Uint8() (uint8, error)

Uint8 返回对应的int对象

Jump to

Keyboard shortcuts

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