How are some of the micro functions being exported to lua? #3347
-
I am not too familiar with Go but can definitely read the code if pointed to the correct place. As far as I know, the main two places of exporting functions (both micro and go itself) to Lua are in However, I am seeing there are some functions that are being exported to Lua without "explicitly" exporting them. For example the micro/internal/buffer/buffer.go Line 784 in 55f45ce which is used in one of the built-in plugins Searching with the function name only gives me 5 places, and none of them are related to be exported to Lua. So there should be some sort of "automatic" exporting in somewhere that automatically exports functions in a file, maybe? Does anyone that is more familiar with Go can point me to the correct place(s) on where other functions are exported? In addition to functions, how does Lua know the structure of a type in Go/micro? Again where are we exporting them? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You can use any public method on any object that you can access through one of the explicitly exported functions (or through event handler arguments). |
Beta Was this translation helpful? Give feedback.
You can use any public method on any object that you can access through one of the explicitly exported functions (or through event handler arguments).