llpyg: ready to test

This commit is contained in:
xushiwei
2024-05-14 17:22:36 +08:00
parent 35a73b4cde
commit 172a268e77
2 changed files with 111 additions and 8 deletions

View File

@@ -46,7 +46,7 @@ func main() {
sym.SetItem(c.Str("type"), cjson.String(val.Type().Name().CStr()))
sym.SetItem(c.Str("name"), cjson.String(key.CStr()))
sym.SetItem(c.Str("doc"), cjson.String(doc.CStr()))
if val.Callable() != 0 && false {
if val.Callable() != 0 {
sig := inspect.Signature(val)
sym.SetItem(c.Str("sig"), cjson.String(sig.Str().CStr()))
}