Versions in this module Expand all Collapse all v1 v1.1.12 Dec 21, 2020 Changes in this version + const LnsItemKindInt + const LnsItemKindReal + const LnsItemKindStem + const LnsItemKindStr + const LnsItemKindUnknown + var DependLuaOnLns_runLuaOnLnsFunc func(luaCode string) (LnsAny, string) = nil + var LnsNone interface{} = nil + var Lns_package_path string + func Depend_canUseAsync() bool + func Depend_canUseChannel() bool + func Depend_existFile(path string) bool + func Depend_getLuaVersion() string + func Depend_getStackTrace() string + func Depend_setup(callback Depend_UpdateVer) + func LnsPreload(vm *C.lua_State) C.int + func Lns_DependLuaOnLns_init() + func Lns_Depend_init() + func Lns_InitMod() + func Lns_InitModOnce() + func Lns_IsNil(val LnsAny) bool + func Lns_NilAccCall0(self *LnsEnv, call func()) bool + func Lns_NilAccCall1(self *LnsEnv, call func() LnsAny) bool + func Lns_NilAccCall2(self *LnsEnv, call func() (LnsAny, LnsAny)) bool + func Lns_NilAccCall3(self *LnsEnv, call func() (LnsAny, LnsAny, LnsAny)) bool + func Lns_NilAccFinCall2(ret LnsAny) (LnsAny, LnsAny) + func Lns_NilAccFinCall3(ret LnsAny) (LnsAny, LnsAny, LnsAny) + func Lns_Str_init() + func Lns_ToBoolSub(obj LnsAny, nilable bool, paramList []Lns_ToObjParam) (bool, LnsAny, LnsAny) + func Lns_ToIntSub(obj LnsAny, nilable bool, paramList []Lns_ToObjParam) (bool, LnsAny, LnsAny) + func Lns_ToListSub(obj LnsAny, nilable bool, paramList []Lns_ToObjParam) (bool, LnsAny, LnsAny) + func Lns_ToLnsMapSub(obj LnsAny, nilable bool, paramList []Lns_ToObjParam) (bool, LnsAny, LnsAny) + func Lns_ToRealSub(obj LnsAny, nilable bool, paramList []Lns_ToObjParam) (bool, LnsAny, LnsAny) + func Lns_ToSetSub(obj LnsAny, nilable bool, paramList []Lns_ToObjParam) (bool, LnsAny, LnsAny) + func Lns_ToStemSub(obj LnsAny, nilable bool, paramList []Lns_ToObjParam) (bool, LnsAny, LnsAny) + func Lns_ToStrSub(obj LnsAny, nilable bool, paramList []Lns_ToObjParam) (bool, LnsAny, LnsAny) + func Lns_ToString(val LnsAny) string + func Lns_initPreload(vm *C.lua_State) + func Lns_io_open(path string, mode LnsAny) (LnsAny, LnsAny) + func Lns_isCondTrue(stem LnsAny) bool + func Lns_op_not(stem LnsAny) bool + func Lns_print(multi []LnsAny) + func Lns_runLuaScript(script string) + func Lns_type(val LnsAny) string + func Str_endsWith(txt, ptn string) bool + func Str_isValidStrBuilder() bool + func Str_startsWith(txt, ptn string) bool + type Depend_UpdateVer func(ver LnsInt) + type LnsAlgeVal interface + GetTxt func() string + type LnsAny = interface + func DependLuaOnLns_runLuaOnLns(luaCode string) (LnsAny, string) + func Depend_getFileLastModifiedTime(path string) LnsAny + func Depend_profile(validTest bool, work LnsForm, path string) LnsAny + func Depend_searchpath(mod string, pathPattern string) LnsAny + func Lns_2DDD(multi ...LnsAny) []LnsAny + func Lns_FromStemGetAt(obj LnsAny, index LnsAny, nilAccess bool) LnsAny + func Lns_ToCollection(val LnsAny) LnsAny + func Lns_car(multi ...LnsAny) LnsAny + func Lns_cast2LnsInt(val LnsAny) LnsAny + func Lns_cast2LnsReal(val LnsAny) LnsAny + func Lns_cast2bool(val LnsAny) LnsAny + func Lns_cast2string(val LnsAny) LnsAny + func Lns_getFromMulti(multi []LnsAny, index LnsInt) LnsAny + func Lns_require(val string) LnsAny + func Lns_tonumber(val string, base LnsAny) LnsAny + func Lns_unwrap(val LnsAny) LnsAny + func Lns_unwrapDefault(val, def LnsAny) LnsAny + func Str_Builder2Stem(obj LnsAny) LnsAny + func Str_BuilderDownCastF(multi ...LnsAny) LnsAny + type LnsComp func(val1, val2 LnsAny) bool + type LnsEnv struct + LuaVM *Lns_luaVM + func Lns_GetEnv() *LnsEnv + func (self *LnsEnv) IncStack() bool + func (self *LnsEnv) NilAccFin(ret bool) LnsAny + func (self *LnsEnv) NilAccPop() LnsAny + func (self *LnsEnv) NilAccPush(obj interface{}) bool + func (self *LnsEnv) PopVal(dummy bool) LnsAny + func (self *LnsEnv) SetStackVal(val LnsAny) bool + type LnsForm func([]LnsAny) []LnsAny + type LnsInt = int + func Lns_forceCastInt(val LnsAny) LnsInt + type LnsList struct + Items []LnsAny + func NewLnsList(list []LnsAny) *LnsList + func Str_getLineList(txt string) *LnsList + func (LnsList *LnsList) ToLuaCode(conv *StemToLuaConv) + func (lnsList *LnsList) GetAt(index int) LnsAny + func (lnsList *LnsList) Insert(val LnsAny) + func (lnsList *LnsList) Remove(index LnsAny) LnsAny + func (lnsList *LnsList) Set(index int, val LnsAny) + func (lnsList *LnsList) Unpack() []LnsAny + func (self *LnsList) Len() int + func (self *LnsList) Less(idx1, idx2 int) bool + func (self *LnsList) Sort(kind int, comp LnsAny) + func (self *LnsList) Swap(idx1, idx2 int) + func (self *LnsList) ToCollection() LnsAny + type LnsMap struct + Items map[LnsAny]LnsAny + func NewLnsMap(arg map[LnsAny]LnsAny) *LnsMap + func (LnsMap *LnsMap) ToLuaCode(conv *StemToLuaConv) + func (self *LnsMap) Correct() *LnsMap + func (self *LnsMap) CreateKeyListInt() *LnsList + func (self *LnsMap) CreateKeyListReal() *LnsList + func (self *LnsMap) CreateKeyListStem() *LnsList + func (self *LnsMap) CreateKeyListStr() *LnsList + func (self *LnsMap) Set(key, val LnsAny) + func (self *LnsMap) ToCollection() LnsAny + type LnsReader struct + func NewLnsReader(reader io.Reader) *LnsReader + func (self *LnsReader) Read(arg LnsAny) LnsAny + func (self *LnsReader) Sync() + type LnsReal = float64 + func Lns_forceCastReal(val LnsAny) LnsReal + type LnsSet struct + Items map[LnsAny]bool + func NewLnsSet(list []LnsAny) *LnsSet + func (self *LnsSet) Add(val LnsAny) + func (self *LnsSet) And(set *LnsSet) *LnsSet + func (self *LnsSet) Clone() *LnsSet + func (self *LnsSet) CreateKeyListInt() *LnsList + func (self *LnsSet) CreateKeyListReal() *LnsList + func (self *LnsSet) CreateKeyListStem() *LnsList + func (self *LnsSet) CreateKeyListStr() *LnsList + func (self *LnsSet) Del(val LnsAny) + func (self *LnsSet) Has(val LnsAny) bool + func (self *LnsSet) Len() LnsInt + func (self *LnsSet) Or(set *LnsSet) *LnsSet + func (self *LnsSet) Sub(set *LnsSet) *LnsSet + func (self *LnsSet) ToCollection() LnsAny + type LnsThread struct + FP LnsThreadMtd + LnsEnv *LnsEnv + func (self *LnsThread) InitLnsThread() + type LnsThreadMtd interface + Loop func() + type Lns_FileObj_t struct + FP Lns_luaStream + func (self *Lns_FileObj_t) Close() + func (self *Lns_FileObj_t) Flush() + func (self *Lns_FileObj_t) Read(arg LnsAny) LnsAny + func (self *Lns_FileObj_t) Seek(kind string, pos LnsInt) (LnsAny, LnsAny) + func (self *Lns_FileObj_t) Write(arg string) (LnsAny, LnsAny) + type Lns_ToCollectionIF interface + ToCollection func() LnsAny + type Lns_ToMap interface + ToMap func() *LnsMap + type Lns_ToObj func(obj LnsAny, nilable bool, paramList []Lns_ToObjParam) (bool, LnsAny, LnsAny) + type Lns_ToObjParam struct + Child []Lns_ToObjParam + Func func(obj LnsAny, nilable bool, paramList []Lns_ToObjParam) (bool, LnsAny, LnsAny) + Nilable bool + type Lns__pipe struct + FP Lns_pipeMtd + func NewLnspipe(count int) *Lns__pipe + func (self *Lns__pipe) Get() LnsAny + func (self *Lns__pipe) Put(val LnsAny) + type Lns_iStream interface + Close func() + Read func(arg LnsAny) LnsAny + type Lns_luaStream interface + Close func() + Flush func() + Read func(arg LnsAny) LnsAny + Seek func(kind string, pos LnsInt) (LnsAny, LnsAny) + Write func(arg string) (LnsAny, LnsAny) + type Lns_luaVM struct + func Lns_getVM() *Lns_luaVM + func (luaVM *Lns_luaVM) CallStatic(packName string, funcname string, args []LnsAny) []LnsAny + func (luaVM *Lns_luaVM) ExpandLuavalMap(stem LnsAny) LnsAny + func (luaVM *Lns_luaVM) GetEmptyMap() *Lns_luaValue + func (luaVM *Lns_luaVM) GetPackagePath() string + func (luaVM *Lns_luaVM) IO_popen(path string) LnsAny + func (luaVM *Lns_luaVM) Load(txt string, opt LnsAny) (LnsAny, LnsAny) + func (luaVM *Lns_luaVM) Loadfile(path string) (LnsAny, LnsAny) + func (luaVM *Lns_luaVM) Math_random(mVal LnsAny, nVal LnsAny) LnsReal + func (luaVM *Lns_luaVM) Math_randomseed(seed LnsInt) + func (luaVM *Lns_luaVM) NewStemToLuaConv() *StemToLuaConv + func (luaVM *Lns_luaVM) OS_clock() LnsReal + func (luaVM *Lns_luaVM) OS_date(format LnsAny, time LnsAny) LnsAny + func (luaVM *Lns_luaVM) OS_difftime(tm1 LnsAny, tm2 LnsAny) LnsInt + func (luaVM *Lns_luaVM) OS_exit(code LnsAny) + func (luaVM *Lns_luaVM) OS_remove(path string) (LnsAny, LnsAny) + func (luaVM *Lns_luaVM) OS_rename(src string, dst string) (LnsAny, LnsAny) + func (luaVM *Lns_luaVM) OS_time(tbl LnsAny) LnsAny + func (luaVM *Lns_luaVM) Package_searchpath(name string, path string) LnsAny + func (luaVM *Lns_luaVM) RunCode(code string) (bool, []LnsAny, LnsAny) + func (luaVM *Lns_luaVM) RunLoadedfunc(loaded *Lns_luaValue, args []LnsAny) []LnsAny + func (luaVM *Lns_luaVM) SortMapKeyList(mapObj *Lns_luaValue) *Lns_luaValue + func (luaVM *Lns_luaVM) String_byte(txt string, from LnsAny, to LnsAny) []LnsAny + func (luaVM *Lns_luaVM) String_dump(form *Lns_luaValue, flag LnsAny) string + func (luaVM *Lns_luaVM) String_find(txt string, src string, index LnsAny, plain LnsAny) []LnsAny + func (luaVM *Lns_luaVM) String_format(format string, ddd []LnsAny) string + func (luaVM *Lns_luaVM) String_gmatch(txt string, pat string) (LnsAny, LnsAny, LnsAny) + func (luaVM *Lns_luaVM) String_gsub(txt string, src string, dst string) (string, LnsInt) + func (luaVM *Lns_luaVM) String_lower(txt string) string + func (luaVM *Lns_luaVM) String_rep(txt string, num LnsInt) string + func (luaVM *Lns_luaVM) String_reverse(txt string) string + func (luaVM *Lns_luaVM) String_sub(txt string, from LnsInt, to LnsAny) string + func (luaVM *Lns_luaVM) String_upper(txt string) string + type Lns_luaValue struct + func Depend_getLoadedMod() *Lns_luaValue + func (luaValue *Lns_luaValue) Call(argList []LnsAny) []LnsAny + func (luaValue *Lns_luaValue) Get1stFromMap() (LnsAny, LnsAny) + func (luaValue *Lns_luaValue) NextFromMap(prev LnsAny) (LnsAny, LnsAny) + func (obj *Lns_luaValue) CallMethod(funcname string, args []LnsAny) []LnsAny + func (obj *Lns_luaValue) GetAt(index LnsAny) LnsAny + func (obj *Lns_luaValue) Len() LnsInt + type Lns_luaValueCore struct + type Lns_luaValueCoreList struct + type Lns_oStream interface + Close func() + Flush func() + Write func(arg string) (LnsAny, LnsAny) + type Lns_pipeMtd interface + Get func() LnsAny + Put func(val LnsAny) + type Lns_stdin_t struct + FP Lns_iStream + var Lns_io_stdin *Lns_stdin_t + func (self *Lns_stdin_t) Close() + func (self *Lns_stdin_t) Read(arg LnsAny) LnsAny + type Lns_stdout_t struct + FP Lns_oStream + var Lns_io_stderr *Lns_stdout_t + var Lns_io_stdout *Lns_stdout_t + func (self *Lns_stdout_t) Close() + func (self *Lns_stdout_t) Flush() + func (self *Lns_stdout_t) Write(arg string) (LnsAny, LnsAny) + type RegexpCache struct + type StemToLuaConv struct + type Str_Builder struct + FP Str_BuilderMtd + func NewStr_Builder() *Str_Builder + func (obj *Str_Builder) ToStr_Builder() *Str_Builder + func (self *Str_Builder) Add(val string) + func (self *Str_Builder) Clear() + func (self *Str_Builder) Get_txt() string + func (self *Str_Builder) InitStr_Builder() + func (self *Str_Builder) Len() LnsInt + type Str_BuilderDownCast interface + Str_ToBuilder func() *Str_Builder + type Str_BuilderMtd interface + Add func(arg1 string) + Clear func() + Get_txt func() string + Len func() LnsInt