Version: v1.1.1 Latest Latest

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

Go to latest
Published: Mar 18, 2023 License: MIT Imports: 7 Imported by: 0




This section is empty.


This section is empty.


func Ip2long

func Ip2long(ipstr string) (ip uint32)

func Long2ip

func Long2ip(ip uint32) string

func StructToMapInterface

func StructToMapInterface(m interface{}) map[string]interface{}

func StructToMapString

func StructToMapString(m interface{}) map[string]string

func ToStr

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

Convert any type to string.


type StrTo

type StrTo string

Convert string to specify type.

func (StrTo) Exist

func (f StrTo) Exist() bool

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) MustInt

func (f StrTo) MustInt() int

func (StrTo) MustInt64

func (f StrTo) MustInt64() int64

func (StrTo) MustTime

func (f StrTo) MustTime(fm ...string) time.Time

func (StrTo) MustUint

func (f StrTo) MustUint() uint

func (StrTo) MustUint64

func (f StrTo) MustUint64() uint64

func (StrTo) MustUint8

func (f StrTo) MustUint8() uint8

func (StrTo) String

func (f StrTo) String() string

func (StrTo) Time

func (f StrTo) Time(fm ...string) (time.Time, error)

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