---
title: "Discussion on \"Inject values at build time in Go\" | Hashnode"
description: "Discussion on \"Inject values at build time in Go\". Do you know that, It is possible to inject values to variables at build on Golang?\nLet’s assume that you are building a command-line tool and you want to inject the latest build/commit hash to your application. Maybe you are building a rest API servi..."
url: "https://hashnode.com/posts/inject-values-at-build-time-in-go/64fd8c3ad403cb04f0b46877"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Inject values at build time in Go](https://vigos.hashnode.dev/inject-values-at-build-time-in-go?utm_source=hashnode&utm_medium=feed)

Do you know that, It is possible to inject values to variables at build on Golang? Let’s assume that you are building a command-line tool and you want to inject the latest build/commit hash to your application. Maybe you are building a rest API servi...

Sep 10, 2023 · 1 min read · vigos.hashnode.dev  
Read the article

-   [#go](https://hashnode.com/tag/go)

## Written by

[Uğur Özyılmazel](https://hashnode.com/@vigo)

@vigo · İstanbul, Turkey

  
[View profile](https://hashnode.com/@vigo)

SYS 64738

Oldskool Commodore 64 and Amiga Scener, Coder, Founder, Organizer. Gopher, Ruby lover, Python user. I like mostly development stuff.

## Responses

Comments are turned off for this post.
