May 02,2023

Golang .env.vault support

If you’re a Golang developer you can now use .env.vault files with your deployments.

Install godotenvvault:

go get

And as early as possible in your application, import and configure it:

package main

import (


func main() {
  err := godotenvvault.Load()
  if err != nil {
    log.Fatal("Error loading .env file")

  s3Bucket := os.Getenv("S3_BUCKET")
  secretKey := os.Getenv("SECRET_KEY")

  // now do something with s3 or whatever

Visit for more details.