use

package
v0.0.0-...-89dfdfc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2022 License: MIT Imports: 30 Imported by: 2

Documentation

Index

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 AddFacade

func AddFacade(name string, facade any)

func BasePath

func BasePath(path ...string) string

func Body

func Body(doc *html.Node) (*html.Node, error)

func Config

func Config(path string) *config.Config

func D

func D(e ...any)

func DB

func DB() *gorm.DB

func Debounce

func Debounce(after time.Duration) func(f func())

func Embed

func Embed(toEmbed embed.FS)

func GetFacade

func GetFacade(name string) any

func GetInterfacedStructName

func GetInterfacedStructName(element interface{}) string

func HasMethod

func HasMethod(element interface{}, methodName string) (bool, reflect.Value)

func JsonDecode

func JsonDecode(data string) interface{}

func JsonDecodeObject

func JsonDecodeObject(data string) map[string]interface{}

func JsonDecodeStruct

func JsonDecodeStruct(data string, object any)

func JsonEncode

func JsonEncode(element interface{}) string

func Migration

func Migration() *database.Migration

func NumberOfChildren

func NumberOfChildren(n *html.Node) int

func P

func P(e ...any)

func ParseHtml

func ParseHtml(content string) *html.Node

func RenderNode

func RenderNode(n *html.Node) (string, error)

func ReplaceStringAtIndex

func ReplaceStringAtIndex(str string, replacement string, index int) string

func StoragePath

func StoragePath(path ...string) string

func Store

func Store(stores ...string) filesystem.Store

func StringRandom

func StringRandom(length int) string

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 Facade

type Facade struct {
	// contains filtered or unexported fields
}

func NewFacade

func NewFacade() *Facade

func (*Facade) Add

func (f *Facade) Add(name string, facade any)

func (*Facade) Get

func (f *Facade) Get(name string) any

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

type Str

type Str struct {
	strings.Replacer
	strings.Builder
	strings.Reader
	// contains filtered or unexported fields
}

func String

func String(s string) *Str

func (*Str) Get

func (s *Str) Get() string

func (*Str) Kebab

func (s *Str) Kebab() *Str

func (*Str) Snake

func (s *Str) Snake() *Str

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL