@@ -33,7 +33,7 @@ func (l *Lua) SetGlobal(name string, fn lua.LGFunction) {
3333}
3434
3535func (l * Lua ) init () {
36- l .SetGlobal ("getResponse " , GetResponse )
36+ l .SetGlobal ("vmrGetResponse " , GetResponse )
3737 // goquery
3838 l .SetGlobal ("initSelection" , InitSelection )
3939 l .SetGlobal ("find" , Find )
@@ -50,22 +50,22 @@ func (l *Lua) init() {
5050 l .SetGlobal ("getByIndex" , GetGJsonFromSliceByIndex ) // for array
5151 l .SetGlobal ("sliceEach" , GetGJsonSliceEach )
5252 // utils
53- l .SetGlobal ("getOsArch " , GetOsArch )
54- l .SetGlobal ("regexpFindString " , RegExpFindString )
55- l .SetGlobal ("hasPrefix " , HasPrefix )
56- l .SetGlobal ("hasSuffix " , HasSuffix )
57- l .SetGlobal ("contains " , Contains )
58- l .SetGlobal ("trimPrefix " , TrimPrefix )
59- l .SetGlobal ("trimSuffix " , TrimSuffix )
60- l .SetGlobal ("trim " , Trim )
61- l .SetGlobal ("trimSpace " , TrimSpace )
62- l .SetGlobal ("sprintf " , Sprintf )
63- l .SetGlobal ("urlJoin " , UrlJoin )
64- l .SetGlobal ("lenString " , LenString )
53+ l .SetGlobal ("vmrGetOsArch " , GetOsArch )
54+ l .SetGlobal ("vmrRegexpFindString " , RegExpFindString )
55+ l .SetGlobal ("vmrHasPrefix " , HasPrefix )
56+ l .SetGlobal ("vmrHasSuffix " , HasSuffix )
57+ l .SetGlobal ("vmrContains " , Contains )
58+ l .SetGlobal ("vmrTrimPrefix " , TrimPrefix )
59+ l .SetGlobal ("vmrTrimSuffix " , TrimSuffix )
60+ l .SetGlobal ("vmrTrim " , Trim )
61+ l .SetGlobal ("vmrTrimSpace " , TrimSpace )
62+ l .SetGlobal ("vmrSprintf " , Sprintf )
63+ l .SetGlobal ("vmrUrlJoin " , UrlJoin )
64+ l .SetGlobal ("vmrLenString " , LenString )
6565 // version
66- l .SetGlobal ("newVersionList " , NewVersionList )
67- l .SetGlobal ("addItem " , AddItem )
68- l .SetGlobal ("mergeVersionList " , MergeVersionList )
66+ l .SetGlobal ("vmrNewVersionList " , NewVersionList )
67+ l .SetGlobal ("vmrAddItem " , AddItem )
68+ l .SetGlobal ("vmrMergeVersionList " , MergeVersionList )
6969 // github
7070 l .SetGlobal ("getGithubRelease" , GetGithubRelease )
7171 // installer_config
@@ -75,7 +75,7 @@ func (l *Lua) init() {
7575 l .SetGlobal ("addBinaryDirs" , AddBinaryDirs )
7676 l .SetGlobal ("addAdditionalEnvs" , AddAdditionalEnvs )
7777 // conda
78- l .SetGlobal ("searchByConda " , SearchByConda )
78+ l .SetGlobal ("vmrSearchByConda " , SearchByConda )
7979}
8080
8181func (l * Lua ) GetLState () * lua.LState {
0 commit comments