utilConvert

package
v0.0.0-...-5f3621a Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MulanPSL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToInt

func ToInt(value interface{}) (d int, err error)

func ToInt64

func ToInt64(value interface{}) (d int64, err error)

convert any numeric value to int64

func ToStr

func ToStr(value interface{}, args ...int) (s string)

convert any type to string

Types

type StrTo

type StrTo string

func (StrTo) Bool

func (f StrTo) Bool() (bool, error)

func (*StrTo) Clear

func (f *StrTo) Clear()

func (StrTo) Exist

func (f StrTo) Exist() bool

func (StrTo) Float32

func (f StrTo) Float32() (float32, error)

func (StrTo) Float64

func (f StrTo) Float64() (float64, error)

func (StrTo) Int

func (f StrTo) Int() (int, error)

func (StrTo) Int16

func (f StrTo) Int16() (int16, error)

func (StrTo) Int32

func (f StrTo) Int32() (int32, error)

func (StrTo) Int64

func (f StrTo) Int64() (int64, error)

func (StrTo) Int8

func (f StrTo) Int8() (int8, error)

func (*StrTo) Set

func (f *StrTo) Set(v string)

func (StrTo) String

func (f StrTo) String() string

func (StrTo) Uint

func (f StrTo) Uint() (uint, error)

func (StrTo) Uint16

func (f StrTo) Uint16() (uint16, error)

func (StrTo) Uint32

func (f StrTo) Uint32() (uint32, error)

func (StrTo) Uint64

func (f StrTo) Uint64() (uint64, error)

func (StrTo) Uint8

func (f StrTo) Uint8() (uint8, error)

Jump to

Keyboard shortcuts

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