MCPcopy Create free account
hub / github.com/akshayganeshen/napi-go / GetModuleFileName

Function GetModuleFileName

node_api.go:77–89  ·  view source on GitHub ↗
(env Env)

Source from the content-addressed store, hash-verified

75}
76
77func GetModuleFileName(env Env) (string, Status) {
78 var cresult *C.char
79 status := Status(C.node_api_get_module_file_name(
80 C.napi_env(env),
81 (**C.char)(&cresult),
82 ))
83
84 if status != StatusOK {
85 return "", status
86 }
87
88 return C.GoString(cresult), status
89}
90
91func CreateThreadsafeFunction(
92 env Env,

Callers

nothing calls this directly

Calls 1

StatusTypeAlias · 0.85

Tested by

no test coverage detected