Skip to content

Instantly share code, notes, and snippets.

Avatar

John Wesley johnwesley

View GitHub Profile
@sdorra
sdorra / keys.go
Created Apr 17, 2016
Golang RSA Key Generation
View keys.go
/*
* Genarate rsa keys.
*/
package main
import (
"crypto/rand"
"crypto/rsa"
"crypto/x509"
@vsouza
vsouza / .bashrc
Last active Jan 15, 2022
Golang setup in Mac OSX with HomeBrew. Set `GOPATH` and `GOROOT` variables in zshell, fish or bash.
View .bashrc
# Set variables in .bashrc file
# don't forget to change your path correctly!
export GOPATH=$HOME/golang
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin