Documentation
¶
Index ¶
- func AddressPtrToStringPtr(addr *common.Address) *string
- func AddressToString(addr common.Address) string
- func ClonePtr[T any](v *T) *T
- func DateOnly(t time.Time) time.Time
- func Filter[T any](slice []T, f func(T) bool) []T
- func IDFromRequest(r *http.Request, key string) types.ID
- func IDPtrToStringPtr(id *types.ID) *string
- func In[T comparable](slice []T, x T) bool
- func Int32PtrToIntPtr(i *int32) *int
- func IntPtrToInt32Ptr(i *int) *int32
- func IntPtrToUintPtr(i *int) *uint
- func Paginate[T any](slice []T, page int, pageSize int, extra int) []T
- func Ptr[T any](v T) *T
- func StringPtrToAddressPtr(hex *string) *common.Address
- func StringPtrToIDtr(hex *string) *types.ID
- func UintPtrToIntPtr(i *uint) *int
- func Version() string
- func WaitForChannelsToClose[T any](chans ...chan T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressPtrToStringPtr ¶
func AddressToString ¶
func IDPtrToStringPtr ¶
func In ¶
func In[T comparable](slice []T, x T) bool
func Int32PtrToIntPtr ¶
func IntPtrToInt32Ptr ¶
func IntPtrToUintPtr ¶
func StringPtrToAddressPtr ¶
func StringPtrToIDtr ¶
func UintPtrToIntPtr ¶
func WaitForChannelsToClose ¶
func WaitForChannelsToClose[T any](chans ...chan T)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.