Documentation ¶
Index ¶
- func CloneFromType(typ reflect.Type) interface{}
- func CloneFromValue(x interface{}) interface{}
- func GeneratePrivKeyAddressPairs(n int) (ks []crypto.PrivKey, addrs []sdk.AccAddress)
- func GetPtrType(ptr interface{}) reflect.Type
- func SecondsToTime(seconds int64) time.Time
- func StrPtr(str string) *string
- func TimeToSeconds(t time.Time) int64
- func UnderlyingValue(v reflect.Value) reflect.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneFromType ¶ added in v0.9.0
CloneFromType returns a new zeroed type of the given type value CONTRACT: typ must be returned from reflect.Value.Type().Elem()
func CloneFromValue ¶ added in v0.9.0
func CloneFromValue(x interface{}) interface{}
CloneFromValue clones an arbitrary type and returns a new zeroed type of the instance, IT DOES NOT COPY THE CONTENTS. CONTRACT: must be a pointer
func GeneratePrivKeyAddressPairs ¶ added in v0.9.0
func GeneratePrivKeyAddressPairs(n int) (ks []crypto.PrivKey, addrs []sdk.AccAddress)
func GetPtrType ¶ added in v0.9.0
GetPtrType returns the pointer type CONTRACT: ptr must be a pointer
func SecondsToTime ¶ added in v0.9.0
SecondsToTime converts unix seconds to time
func TimeToSeconds ¶ added in v0.9.0
TimeToSeconds converts a time.Time to unix seconds timestamp
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.