# Building Temporal server as Go application failing

**URL:** <https://community.temporal.io/t/building-temporal-server-as-go-application-failing/1524>\
**Category:** Community Support\
**Created:** [February 17, 2021, 4:49am UTC](https://community.temporal.io/t/building-temporal-server-as-go-application-failing/1524 "2021-02-17T04:49:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aviksil](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@aviksil](https://community.temporal.io/u/aviksil)\
**Post date:** [February 17, 2021, 4:49am UTC](https://community.temporal.io/t/building-temporal-server-as-go-application-failing/1524/1 "2021-02-17T04:49:13Z")

</div>

Hello,

I am new to Temporal. I want to run the Temporal server as Go application. I followed the steps described in “Start options” doc. As per this I have written a simple Go code (temporal\_server.go) like below:

```auto
package main

import (
        "go.temporal.io/server/temporal"
)

func main() {
        s := temporal.NewServer(
                temporal.InterruptOn(temporal.InterruptCh())
        )
        err := s.Start()
        if err != nil{
                log.Fatal(err)
        }
}

```

When I build it I get below errors:

```auto
    > go build temporal_server.go
C:\Users\Avik Sil\go\pkg\mod\github.com\uber\tchannel-go@v1.21.0\thrift\gen-go\meta\meta.go:67:34: not enough arguments in call to oprot.WriteMessageBegin
        have (string, thrift.TMessageType, int32)
        want (context.Context, string, thrift.TMessageType, int32)
[...]

```

Please help me fix this issue. Let me know I am missing anything.

Thanks,  
Avik

---

<div class="post-metadata">

**Author:** ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)\
**Post date:** [February 17, 2021, 5:32pm UTC](https://community.temporal.io/t/building-temporal-server-as-go-application-failing/1524/2 "2021-02-17T17:32:21Z")

</div>

Are you using Go modules to include the temporal dependency? What is the content of go.mod that references temporal?

---

<div class="post-metadata">

**Author:** ![Wenquan\_Xing](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/wenquan_xing/32/362_2.png) [@Wenquan\_Xing](https://community.temporal.io/u/Wenquan_Xing)\
**Post date:** [February 17, 2021, 5:34pm UTC](https://community.temporal.io/t/building-temporal-server-as-go-application-failing/1524/3 "2021-02-17T17:34:08Z")

</div>

make sure to use this

> <https://github.com/temporalio/temporal/blob/master/go.mod#L10>

---

<div class="post-metadata">

**Author:** ![aviksil](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@aviksil](https://community.temporal.io/u/aviksil)\
**Post date:** [February 18, 2021, 6:34am UTC](https://community.temporal.io/t/building-temporal-server-as-go-application-failing/1524/4 "2021-02-18T06:34:52Z")

</div>

Thanks for all the helps. I am able to build and run the temporal server successfully now.
