Documentation ¶
Overview ¶
*
- Hash 工具类. *
- @FileName: hash.go
- @Auther : 杨雪波
- @Email : yangxuebo@yeah.net
- @CreateTime: 2018-07-26 10:44:32
- @UpdateTime: 2018-07-26 10:44:54
*
- 通用工具类. *
- @FileName: utils.go
- @Auther : 杨雪波
- @Email : yangxuebo@yeah.net
- @CreateTime: 2018-07-26 10:44:32
- @UpdateTime: 2018-07-26 10:44:54
Index ¶
- func ByteToHexString(bytes []byte) string
- func BytesToBigInt(b []byte) *big.Int
- func DecodeAddress(address string) ([]byte, error)
- func DecodeB58(version uint8, input string) (decodedBytes []byte, err error)
- func DeepCopy(value interface{}) interface{}
- func EncodeB58(version uint8, bytes []byte) string
- func GetBytes(value interface{}) []byte
- func GetFieldNames(obj interface{}) []string
- func GetFieldValue(obj interface{}, fieldName string) interface{}
- func HexToBytes(hexStr string) ([]byte, error)
- func HexToString(hexStr string) (string, error)
- func IsHexString(str string) bool
- func IsNumberString(s string) bool
- func IsNumberType(obj interface{}) bool
- func IsStringType(obj interface{}) bool
- func IsValidAddress(address string) bool
- func IsValidAmount(amount *jtConst.Amount) bool
- func IsValidAmount0(amount *jtConst.Amount) bool
- func IsValidCurrency(currency string) bool
- func MatchString(patter string, str string) bool
- func NumberToString(obj interface{}) string
- func Sha256Util(sbytes []byte) []byte
- func SortByFieldName(fields []string)
- func StringToHex(str string) string
- func ToAmount(amount jtConst.Amount) (interface{}, error)
- type FieldWrapper
- type Sha512
- type SortBy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFieldValue ¶
func GetFieldValue(obj interface{}, fieldName string) interface{}
GetFieldValue 获取对象字段存储的值
func IsStringType ¶
func IsStringType(obj interface{}) bool
Types ¶
type FieldWrapper ¶
type FieldWrapper struct {
// contains filtered or unexported fields
}
FieldWrapper 字段排序包装类
func (FieldWrapper) Len ¶
func (fw FieldWrapper) Len() int
func (FieldWrapper) Less ¶
func (fw FieldWrapper) Less(i, j int) bool
func (FieldWrapper) Swap ¶
func (fw FieldWrapper) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.