Skip to content

Instantly share code, notes, and snippets.

@ipv4sec
Created September 29, 2018 06:43
Show Gist options
  • Select an option

  • Save ipv4sec/ae18edac752a9de79de2f0813f4a4592 to your computer and use it in GitHub Desktop.

Select an option

Save ipv4sec/ae18edac752a9de79de2f0813f4a4592 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
BIN_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ROOT_DIR="$(dirname "$BIN_DIR")"
cd $BIN_DIR
rm -f social-contact-feed-go
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o social-contact-feed-go-linux ../main/main.go
go build -o social-contact-feed-go-mac ../main/main.go
cd $ROOT_DIR
./bin/social-contact-feed-go-mac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment