Skip to content

Instantly share code, notes, and snippets.

@ericlagergren
Created July 15, 2015 21:55
Show Gist options
  • Save ericlagergren/32608750430630d17c69 to your computer and use it in GitHub Desktop.
Save ericlagergren/32608750430630d17c69 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -euo pipefail
export TEST_VAR="Hello, world!"
package main
import (
"fmt"
"os"
)
func main() {
fmt.Println("test_var is: ", os.Getenv("TEST_VAR"))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment