convert

package
v0.0.0-...-dba4764 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2015 License: MIT Imports: 9 Imported by: 24

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRandomString

func GetRandomString(n int) string

Random generate string

func NumberDecode

func NumberDecode(token string, alphabet []byte) string

func NumberEncode

func NumberEncode(number string, alphabet []byte) string

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

func (f StrTo) Md5() string

func (StrTo) MultiWord

func (f StrTo) MultiWord() []string

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