# Is there a Go library for consul-template?

**URL:** <https://discuss.hashicorp.com/t/is-there-a-go-library-for-consul-template/71398>\
**Category:** Consul\
**Tags:** consul-template\
**Created:** [November 16, 2024, 2:52am UTC](https://discuss.hashicorp.com/t/is-there-a-go-library-for-consul-template/71398 "2024-11-16T02:52:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![UnguardedFist](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/unguardedfist/32/42832_2.png) [@UnguardedFist](https://discuss.hashicorp.com/u/UnguardedFist)\
**Post date:** [November 16, 2024, 2:52am UTC](https://discuss.hashicorp.com/t/is-there-a-go-library-for-consul-template/71398/1 "2024-11-16T02:52:24Z")

</div>

Hi there! I’m new to Go development. Is there a Go library for consul-template?

As an example, there is a [Vault Go library](https://github.com/hashicorp/vault-client-go).

Thanks!

---

<div class="post-metadata">

**Author:** ![Ranjandas](https://avatars.discourse-cdn.com/v4/letter/r/90ced4/32.png) [@Ranjandas](https://discuss.hashicorp.com/u/Ranjandas)\
**Post date:** [December 1, 2024, 11:44pm UTC](https://discuss.hashicorp.com/t/is-there-a-go-library-for-consul-template/71398/2 "2024-12-01T23:44:40Z")

</div>

Hi @UnguardedFist,

Welcome to the HashiCorp Forums!

Consul-template itself is a Go library, and can be imported and used in your Go programs.

ref: [template package - github.com/hashicorp/consul-template/template - Go Packages](https://pkg.go.dev/github.com/hashicorp/consul-template/template#pkg-variables)

This is how for example Nomad uses consul-template: [nomad/client/allocrunner/taskrunner/template/template.go at 76e39b1c1ebe4663093da4e5735ac694d639e3a0 · hashicorp/nomad · GitHub](https://github.com/hashicorp/nomad/blob/76e39b1c1ebe4663093da4e5735ac694d639e3a0/client/allocrunner/taskrunner/template/template.go#L19)

I hope this helps!
