Documentation ¶
Index ¶
- Constants
- func AbortUnless(e interface{})
- func AddFacade(name string, facade any)
- func BasePath(path ...string) string
- func Body(doc *html.Node) (*html.Node, error)
- func Config(path string) *config.Config
- func D(e ...any)
- func DB() *gorm.DB
- func Debounce(after time.Duration) func(f func())
- func Embed(toEmbed embed.FS)
- func GetFacade(name string) any
- func GetInterfacedStructName(element interface{}) string
- func HasMethod(element interface{}, methodName string) (bool, reflect.Value)
- func JsonDecode(data string) interface{}
- func JsonDecodeObject(data string) map[string]interface{}
- func JsonDecodeStruct(data string, object any)
- func JsonEncode(element interface{}) string
- func Migration() *database.Migration
- func NumberOfChildren(n *html.Node) int
- func P(e ...any)
- func ParseHtml(content string) *html.Node
- func RenderNode(n *html.Node) (string, error)
- func ReplaceStringAtIndex(str string, replacement string, index int) string
- func StoragePath(path ...string) string
- func Store(stores ...string) filesystem.Store
- func StringRandom(length int) string
- func TimeRecord() *timer
- type Collection
- func (c *Collection[Key, Value]) Add(key Key, value Value)
- func (c *Collection[Key, Value]) Count() int
- func (c *Collection[Key, Value]) Current() Value
- func (c *Collection[Key, Value]) First() Value
- func (c *Collection[Key, Value]) Get(key Key) Value
- func (c *Collection[Key, Value]) Has(key Key) bool
- func (c *Collection[Key, Value]) HasNext() bool
- func (c *Collection[Key, Value]) HasPrevious() bool
- func (c *Collection[Key, Value]) Iterate(fn func(key Key, value Value))
- func (c *Collection[Key, Value]) Key() Key
- func (c *Collection[Key, Value]) Last() Value
- func (c *Collection[Key, Value]) Map() map[Key]Value
- func (c *Collection[Key, Value]) Merge(other *Collection[Key, Value])
- func (c *Collection[Key, Value]) Next() Value
- func (c *Collection[Key, Value]) Previous() interface{}
- func (c *Collection[Key, Value]) Remove(key Key) bool
- func (c *Collection[Key, Value]) RemoveAll()
- func (c *Collection[Key, Value]) Set(data map[Key]Value)
- func (c *Collection[Key, Value]) Slice() []Value
- type Facade
- type Reflection
- func (r *Reflection) Call() reflect.Value
- func (r *Reflection) Fill() *Reflection
- func (r *Reflection) GetField(field string) interface{}
- func (r *Reflection) GetFields() map[string]interface{}
- func (r *Reflection) HasMethod(method string) bool
- func (r *Reflection) Method(method string) *Reflection
- func (r *Reflection) Name() string
- func (r *Reflection) NewPointer() reflect.Value
- func (r *Reflection) ToPointer() *Reflection
- func (r *Reflection) Value() interface{}
- func (r *Reflection) WithInjectable(params []interface{}) *Reflection
- func (r *Reflection) WithParams(params interface{}) *Reflection
- type Str
Constants ¶
View Source
const IoctlReadTermIos = unix.TCGETS
View Source
const IoctlWriteTermIos = unix.TCSETS
Variables ¶
This section is empty.
Functions ¶
func AbortUnless ¶
func AbortUnless(e interface{})
func GetInterfacedStructName ¶
func GetInterfacedStructName(element interface{}) string
func JsonDecode ¶
func JsonDecode(data string) interface{}
func JsonDecodeObject ¶
func JsonDecodeStruct ¶
func JsonEncode ¶
func JsonEncode(element interface{}) string
func NumberOfChildren ¶
func ReplaceStringAtIndex ¶
func StoragePath ¶
func Store ¶
func Store(stores ...string) filesystem.Store
func StringRandom ¶
func TimeRecord ¶
func TimeRecord() *timer
Types ¶
type Collection ¶
type Collection[Key comparable, Value any] struct { // contains filtered or unexported fields }
func NewCollection ¶
func NewCollection[Key comparable, Value any]() *Collection[Key, Value]
func (*Collection[Key, Value]) Add ¶
func (c *Collection[Key, Value]) Add(key Key, value Value)
func (*Collection[Key, Value]) Count ¶
func (c *Collection[Key, Value]) Count() int
func (*Collection[Key, Value]) Current ¶
func (c *Collection[Key, Value]) Current() Value
func (*Collection[Key, Value]) First ¶
func (c *Collection[Key, Value]) First() Value
func (*Collection[Key, Value]) Get ¶
func (c *Collection[Key, Value]) Get(key Key) Value
func (*Collection[Key, Value]) Has ¶
func (c *Collection[Key, Value]) Has(key Key) bool
func (*Collection[Key, Value]) HasNext ¶
func (c *Collection[Key, Value]) HasNext() bool
func (*Collection[Key, Value]) HasPrevious ¶
func (c *Collection[Key, Value]) HasPrevious() bool
func (*Collection[Key, Value]) Iterate ¶
func (c *Collection[Key, Value]) Iterate(fn func(key Key, value Value))
func (*Collection[Key, Value]) Key ¶
func (c *Collection[Key, Value]) Key() Key
func (*Collection[Key, Value]) Last ¶
func (c *Collection[Key, Value]) Last() Value
func (*Collection[Key, Value]) Map ¶
func (c *Collection[Key, Value]) Map() map[Key]Value
func (*Collection[Key, Value]) Merge ¶
func (c *Collection[Key, Value]) Merge(other *Collection[Key, Value])
func (*Collection[Key, Value]) Next ¶
func (c *Collection[Key, Value]) Next() Value
func (*Collection[Key, Value]) Previous ¶
func (c *Collection[Key, Value]) Previous() interface{}
func (*Collection[Key, Value]) Remove ¶
func (c *Collection[Key, Value]) Remove(key Key) bool
func (*Collection[Key, Value]) RemoveAll ¶
func (c *Collection[Key, Value]) RemoveAll()
func (*Collection[Key, Value]) Set ¶
func (c *Collection[Key, Value]) Set(data map[Key]Value)
func (*Collection[Key, Value]) Slice ¶
func (c *Collection[Key, Value]) Slice() []Value
type Reflection ¶
type Reflection struct {
// contains filtered or unexported fields
}
func Magic ¶
func Magic(i interface{}) *Reflection
func (*Reflection) Call ¶
func (r *Reflection) Call() reflect.Value
func (*Reflection) Fill ¶
func (r *Reflection) Fill() *Reflection
func (*Reflection) GetField ¶
func (r *Reflection) GetField(field string) interface{}
func (*Reflection) GetFields ¶
func (r *Reflection) GetFields() map[string]interface{}
func (*Reflection) HasMethod ¶
func (r *Reflection) HasMethod(method string) bool
func (*Reflection) Method ¶
func (r *Reflection) Method(method string) *Reflection
func (*Reflection) Name ¶
func (r *Reflection) Name() string
func (*Reflection) NewPointer ¶
func (r *Reflection) NewPointer() reflect.Value
func (*Reflection) ToPointer ¶
func (r *Reflection) ToPointer() *Reflection
func (*Reflection) Value ¶
func (r *Reflection) Value() interface{}
func (*Reflection) WithInjectable ¶
func (r *Reflection) WithInjectable(params []interface{}) *Reflection
func (*Reflection) WithParams ¶
func (r *Reflection) WithParams(params interface{}) *Reflection
Click to show internal directories.
Click to hide internal directories.