# Goja from nakama module

**URL:** <https://forum.heroiclabs.com/t/goja-from-nakama-module/4242>\
**Category:** Runtime Framework\
**Tags:** golang\
**Created:** [August 16, 2023, 8:40pm UTC](https://forum.heroiclabs.com/t/goja-from-nakama-module/4242 "2023-08-16T20:40:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![skullptr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/skullptr/32/1630_2.png) [@skullptr](https://forum.heroiclabs.com/u/skullptr)\
**Post date:** [August 16, 2023, 8:40pm UTC](https://forum.heroiclabs.com/t/goja-from-nakama-module/4242/1 "2023-08-16T20:40:04Z")

</div>

How to call `goja` functions of `nakama`?

---

<div class="post-metadata">

**Author:** ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)\
**Post date:** [August 17, 2023, 9:12am UTC](https://forum.heroiclabs.com/t/goja-from-nakama-module/4242/2 "2023-08-17T09:12:45Z")

</div>

Hello @skullptr,

Sorry I’m not sure what you mean?

---

<div class="post-metadata">

**Author:** ![skullptr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/skullptr/32/1630_2.png) [@skullptr](https://forum.heroiclabs.com/u/skullptr)\
**Post date:** [August 17, 2023, 11:09am UTC](https://forum.heroiclabs.com/t/goja-from-nakama-module/4242/3 "2023-08-17T11:09:03Z")

</div>

hi @sesposito !

I wanted to compile some `*.js` code from Go and I was thinking about `goja` module. When I tried to compile it with the latest from github, I get a conflict between `goja`-s, since `nakama` has it’s own (older) version. And I guessed may be there is a way to call `goja` functions from `nakama` runtime, since it feels easier, than modifying `*.mod`.

Is there a workaround? Apologize in advance for silly questions. Still learning Go.

---

<div class="post-metadata">

**Author:** ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)\
**Post date:** [August 17, 2023, 11:59am UTC](https://forum.heroiclabs.com/t/goja-from-nakama-module/4242/4 "2023-08-17T11:59:09Z")

</div>

Ok I think I understand now, If you’re using `goja` inside your custom runtime code to be loaded by Nakama as a Go plugin, the `goja` version you declare in your custom code `go.mod` has to match that of Nakama’s version you’re using.

To be able to use the `goja` module inside your custom code you have to include it in your plugin dependencies.

Best
