Documentation
¶
Index ¶
- func B2L(b []byte) lua.LString
- func B2S(b []byte) string
- func Check[T any](L *lua.LState, val lua.LValue) (t T)
- func Copier(L *lua.LState, field reflect.Value, val lua.LValue) error
- func Format(L *lua.LState, seek int) string
- func IntOr(tab *lua.LTable, key string, d int) int
- func NewFmtL(L *lua.LState) int
- func NewIntL(L *lua.LState) int
- func NewMapL(L *lua.LState) int
- func NewSliceL(L *lua.LState) int
- func Preload(ip Preloader)
- func PreloadModule(L *lua.LState)
- func PrettyJson(lv lua.LValue) []byte
- func PrettyJsonL(L *lua.LState) int
- func S2B(s string) (b []byte)
- func S2L(s string) lua.LString
- func StringOr(tab *lua.LTable, key string, d string) string
- func TableTo(L *lua.LState, tab *lua.LTable, v any) error
- type Map
- func (m Map[K, V]) Decode(data []byte) error
- func (m Map[K, V]) Index(L *lua.LState, key string) lua.LValue
- func (m Map[K, V]) Meta(L *lua.LState, key lua.LValue) lua.LValue
- func (m Map[K, V]) NewIndex(L *lua.LState, key string, value lua.LValue)
- func (m Map[K, V]) NewMeta(L *lua.LState, key lua.LValue, val lua.LValue)
- func (m Map[K, V]) String() string
- type Pool
- type Preloader
- type Slice
- func (s Slice[T]) AssertFloat64() (float64, bool)
- func (s Slice[T]) AssertFunction() (*lua.LFunction, bool)
- func (s Slice[T]) AssertString() (string, bool)
- func (s *Slice[T]) Get(idx int) (t T, ok bool)
- func (s Slice[T]) Hijack(fsm *lua.CallFrameFSM) bool
- func (s Slice[T]) Index(L *lua.LState, key string) lua.LValue
- func (s *Slice[T]) Len() int
- func (s Slice[T]) Meta(L *lua.LState, key lua.LValue) lua.LValue
- func (s Slice[T]) NewMeta(L *lua.LState, key lua.LValue, val lua.LValue)
- func (s *Slice[T]) Set(idx int, val lua.LValue) error
- func (s Slice[T]) String() string
- func (s Slice[T]) Type() lua.LValueType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PreloadModule ¶
func PrettyJson ¶
func PrettyJsonL ¶
Types ¶
type Map ¶
type Map[K comparable, V any] map[K]V
type Slice ¶
type Slice[T any] []T
func (Slice[T]) AssertFloat64 ¶
func (Slice[T]) AssertString ¶
func (Slice[T]) Type ¶
func (s Slice[T]) Type() lua.LValueType
Click to show internal directories.
Click to hide internal directories.