Documentation ¶
Index ¶
- func IsValidHexString(str string) (valid bool, length int)
- type AnyMap
- func (a *AnyMap[T]) HasKey(key string) bool
- func (a *AnyMap[T]) JsonString() (*base.OptionalString, error)
- func (a *AnyMap[T]) Keys() *base.StringArray
- func (a AnyMap[T]) MarshalJSON() ([]byte, error)
- func (a *AnyMap[T]) Remove(key string) T
- func (a *AnyMap[T]) SetValue(value T, key string)
- func (a *AnyMap[T]) String() string
- func (a *AnyMap[T]) UnmarshalJSON(data []byte) error
- func (a *AnyMap[T]) ValueOf(key string) T
- type SdkPageable
- func (p *SdkPageable[T]) CurrentCount() int
- func (p *SdkPageable[T]) CurrentCursor() string
- func (p *SdkPageable[T]) HasNextPage() bool
- func (p *SdkPageable[T]) ItemArray() *base.AnyArray
- func (p *SdkPageable[T]) ItemAt(index int) T
- func (p *SdkPageable[T]) JsonString() (*base.OptionalString, error)
- func (p *SdkPageable[T]) TotalCount() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AnyMap ¶
func (*AnyMap[T]) JsonString ¶
func (a *AnyMap[T]) JsonString() (*base.OptionalString, error)
func (*AnyMap[T]) Keys ¶
func (a *AnyMap[T]) Keys() *base.StringArray
func (AnyMap[T]) MarshalJSON ¶
`AnyMap` only support Marshal
func (*AnyMap[T]) UnmarshalJSON ¶
type SdkPageable ¶
type SdkPageable[T any] struct { TotalCount_ int `json:"totalCount"` CurrentCount_ int `json:"currentCount"` CurrentCursor_ string `json:"currentCursor"` HasNextPage_ bool `json:"hasNextPage"` Items []T `json:"items"` // contains filtered or unexported fields }
`SdkPageable` implemented wallet-SDK/base's interface `Jsonable` If you new class `Xxx` extends it, you should implement `NewXxxWithJsonString` by your self.
func (*SdkPageable[T]) CurrentCount ¶
func (p *SdkPageable[T]) CurrentCount() int
func (*SdkPageable[T]) CurrentCursor ¶
func (p *SdkPageable[T]) CurrentCursor() string
func (*SdkPageable[T]) HasNextPage ¶
func (p *SdkPageable[T]) HasNextPage() bool
func (*SdkPageable[T]) ItemArray ¶
func (p *SdkPageable[T]) ItemArray() *base.AnyArray
func (*SdkPageable[T]) ItemAt ¶
func (p *SdkPageable[T]) ItemAt(index int) T
It's will crash when index out of range
func (*SdkPageable[T]) JsonString ¶
func (p *SdkPageable[T]) JsonString() (*base.OptionalString, error)
func (*SdkPageable[T]) TotalCount ¶
func (p *SdkPageable[T]) TotalCount() int
Click to show internal directories.
Click to hide internal directories.