Documentation ¶
Index ¶
- type Collection
- func (c *Collection) Add(item any)
- func (c Collection) Data() []any
- func (c Collection) First() any
- func (c Collection) Len() int
- func (c Collection) Metadata() Metadata
- func (c *Collection) Remove(item interface{})
- func (c *Collection) SetMetadata(page uint32, pageSize uint32, total uint32) Collection
- func (c Collection) Transform(fn func(any) any) Collection
- type Metadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct {
// contains filtered or unexported fields
}
func New ¶
func New() Collection
func (*Collection) Add ¶
func (c *Collection) Add(item any)
func (Collection) Data ¶
func (c Collection) Data() []any
func (Collection) First ¶
func (c Collection) First() any
func (Collection) Len ¶
func (c Collection) Len() int
func (Collection) Metadata ¶
func (c Collection) Metadata() Metadata
func (*Collection) Remove ¶
func (c *Collection) Remove(item interface{})
func (*Collection) SetMetadata ¶
func (c *Collection) SetMetadata(page uint32, pageSize uint32, total uint32) Collection
func (Collection) Transform ¶
func (c Collection) Transform(fn func(any) any) Collection
Click to show internal directories.
Click to hide internal directories.