# Golang Agent Local Development Import Statements

**URL:** <https://discuss.elastic.co/t/golang-agent-local-development-import-statements/299575>\
**Category:** APM\
**Tags:** go\
**Created:** [March 13, 2022, 9:11pm UTC](https://discuss.elastic.co/t/golang-agent-local-development-import-statements/299575 "2022-03-13T21:11:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaamish](https://avatars.discourse-cdn.com/v4/letter/j/4491bb/32.png) [@jaamish](https://discuss.elastic.co/u/jaamish)\
**Post date:** [March 13, 2022, 9:11pm UTC](https://discuss.elastic.co/t/golang-agent-local-development-import-statements/299575/1 "2022-03-13T21:11:52Z")

</div>

Hi there, I am trying to add a new database instrumentation support in golfing agent locally. But I see that by default if I add a new module in place, the import module should point to "[go.elastic.co](http://go.elastic.co)" for me to pull it in my test project.. e.g. in apmmongo the [import statement here is go.elastic.co/apm](https://github.com/elastic/apm-agent-go/blob/02001921d62d10ddc7df80cd837a9983dcb473bf/module/apmmongo/monitor.go#L32).

How to do local development using the golang agent, when all the import statements are pointing to [go.elastic.co/apm](http://go.elastic.co/apm)?

---

<div class="post-metadata">

**Author:** ![axw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/axw/32/28197_2.png) [@axw](https://discuss.elastic.co/u/axw)\
**Post date:** [March 14, 2022, 9:29am UTC](https://discuss.elastic.co/t/golang-agent-local-development-import-statements/299575/2 "2022-03-14T09:29:41Z")

</div>

Welcome to the forum @jaamish!

I'm having trouble understanding your question. Can you please explain what have you tried, and what is the issue you have encountered?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 4, 2022, 5:29am UTC](https://discuss.elastic.co/t/golang-agent-local-development-import-statements/299575/3 "2022-04-04T05:29:59Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
