Skip to content

Instantly share code, notes, and snippets.

@leandroh
Created April 16, 2019 16:11
Show Gist options
  • Save leandroh/c9222b6f4f08577959d7a2e8d85e2199 to your computer and use it in GitHub Desktop.
Save leandroh/c9222b6f4f08577959d7a2e8d85e2199 to your computer and use it in GitHub Desktop.
Export environment variables and run a simple Go API
#!/usr/bin/env bash
export $(egrep -v '^#' .env | xargs)
go run cmd/api/main.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment