Documentation
¶
Index ¶
- Variables
- func Remove[T any](model *Model[T])
- type ForParams
- type Model
- func (m *Model[T]) Add(data ...*T)
- func (m *Model[T]) Filter(cb func(item *ForParams[T]) *T) (filteredModel *Model[T])
- func (m *Model[T]) FilterByRegex(regex string, cb func(item *ForParams[T]) string) (filteredModel *Model[T])
- func (m *Model[T]) For(cb func(item *ForParams[T]))
- func (m *Model[T]) ForEach(cb func(item *ForParams[T]) *T)
- func (m *Model[T]) Just() []*T
- func (m *Model[T]) JustCopy() *Model[T]
- func (m *Model[T]) JustFor(cb func(item *ForParams[T])) []*T
- func (m *Model[T]) JustForEach(cb func(item *ForParams[T]) *T) []*T
- func (m *Model[T]) Push(w io.Writer, cb func(item *ForParams[T]) []byte)
- type QueryString
- type Setting
- type String
Constants ¶
This section is empty.
Variables ¶
View Source
var Settings = &Setting{ Out: os.Stdout, }
Functions ¶
Types ¶
type ForParams ¶
type ForParams[T any] struct { // contains filtered or unexported fields }
type Model ¶
type Model[T any] struct { // contains filtered or unexported fields }
func (*Model[T]) FilterByRegex ¶
func (*Model[T]) JustForEach ¶
type QueryString ¶
type QueryString struct {
// contains filtered or unexported fields
}
func (QueryString) Replace ¶
func (qs QueryString) Replace(replaceTo string)
Click to show internal directories.
Click to hide internal directories.