Documentation
¶
Index ¶
- Variables
- func ContextStoreHolders() uint
- func GetFuncName(function any) string
- func GetName(handler any) string
- func GetStructName(rType reflect.Type) string
- func IsStateModifyingMethod(method string) bool
- func LooseEqual(a, b any) bool
- func SafeUint(value int) uint
- type ContextHolder
- type FileLike
- type HasName
- type Holder
- type PageHolder
Constants ¶
This section is empty.
Variables ¶
var Logger = libclog.NewLogger("W3", os.Stderr)
Feel free to modify libclog.Logger.SetLevel, libclog.Logger.UseSyslog & libclog.Logger.SetOutputMode.
Functions ¶
func ContextStoreHolders ¶
func ContextStoreHolders() uint
func GetFuncName ¶
GetFuncName returns the name of the function using reflection.
func GetStructName ¶
func IsStateModifyingMethod ¶
func LooseEqual ¶
Types ¶
type ContextHolder ¶
Refer to AllocateContextStoreHolder and Holder.
func AllocateContextStoreHolder ¶
func AllocateContextStoreHolder[T any]() ContextHolder[T]
Allocates a new item to be stored in [libw3.Context]. Use the returned ContextHolder in [libw3.Context.Get] & [libw3.Context.Set] methods.
type HasName ¶
type HasName interface {
Name() string
}
HasName represents types whose name are known without reflection.
type Holder ¶
Holder to a slice element (slice index where the held data is stored). One should always be obtained from somewhere, rather than casted manually.