---
title: "Discussion on \"Inject values into your golang binary at build time\" | Hashnode"
description: "Discussion on \"Inject values into your golang binary at build time\". I recently discovered that you can update the value of a string variable inside your golang code via compiler flags. This is very useful for scenarios where you want to set a value based on an external process,  but you don't want to let your users c..."
url: "https://hashnode.com/posts/inject-values-into-your-golang-binary-at-build-time/604eb5ae37d84907f132979f"
---

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

Discussion

# [Inject values into your golang binary at build time](https://ramiroberrelleza.com/inject-values-into-your-golang-binary-at-build-time?utm_source=hashnode&utm_medium=feed)

I recently discovered that you can update the value of a string variable inside your golang code via compiler flags. This is very useful for scenarios where you want to set a value based on an external process, but you don't want to let your users c...

Feb 7, 2019 · 2 min read · ramiroberrelleza.com  
Read the article

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

## Written by

[Ramiro Berrelleza](https://hashnode.com/@ramiro)

@ramiro · San Francisco

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

Co-founder & CEO at Okteto

I’m the founder and CEO of Okteto, where we’re busy re-imagining the developer experience for cloud native applications. Before Okteto, I built enterprise chat products at Atlassian, application lifecycle management tools at Elasticbox (now part of Centurylink) and cloud services at Microsoft Azure.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
