Skip to content

Instantly share code, notes, and snippets.

View freeformz's full-sized avatar

Edward Muller freeformz

View GitHub Profile
$ dep status
PROJECT                 MISSING PACKAGES
github.com/boltdb/bolt  [github.com/boltdb/bolt]
$ dep status
PROJECT                     CONSTRAINT  VERSION        REVISION  LATEST   PKGS USED
github.com/boltdb/bolt      *           v1.3.0         583e893   v1.3.0   1
github.com/gorilla/context  *           v1.1           a85d2e5   v1.1     1
github.com/gorilla/mux      ^1.3.0      v1.3.0         392c28f   v1.3.0   1
golang.org/x/sys            *           branch master  7a6e564   7a6e564  1
@freeformz
freeformz / lock.json
Last active February 6, 2017 22:09
depExample2
{
"memo": "d741a3bed21fe6cae9d67c523b0a343859882b2f246f2a293e2676cfacd5a2ce",
"projects": [
{
"name": "github.com/gorilla/context",
"version": "v1.1",
"revision": "a85d2e53ba63bdea074dbbbb5983f0516974e87b",
"packages": [
"."
]
@freeformz
freeformz / main.go
Created February 3, 2017 20:36
depExample1
package main
import (
"net/http"
"os"
"github.com/gorilla/mux"
)
func main() {
package level // github.com/go-kit/kit/log/level
type LogLevels int
const (
Debug LogLevels = iota
Info
Warn
Err

Connecting in Go

Use the redigo or redis package in your application.

$ go get github.com/garyburd/redigo/redis 
$ # OR
$ go get gopkg.in/redis.v5
package main
import (
"context"
"fmt"
"testing"
"github.com/pressly/chi"
)
@freeformz
freeformz / gist:959014
Created May 6, 2011 14:08
Philippe's 3 Rules of Software Craftsmanship
Rule #1 - "Start with a vision"
Rule #2 - "Throwing more bodies at software projects only makes things worse"
Rule #3 - "There are three vectors that drive software craftsmanship: quality, schedule, and features. The challenge is that you only get to pick two"

Keybase proof

I hereby claim:

  • I am freeformz on github.
  • I am freeformz (https://keybase.io/freeformz) on keybase.
  • I have a public key whose fingerprint is 8275 DE1C B8C3 BDA3 4463 0307 4CFC 26B0 A8B0 8656

To claim this, I am signing this object:

@freeformz
freeformz / issue #1.md
Last active May 25, 2016 19:55
Glide Issues

Glide didn't save all deps of github.com/mattes/migrate when it was glide get github.com/mattes/migrate'd.

!!
 !!    'GOVERSION' isn't set, defaulting to 'go1.6'
 !!
 !!    Run 'heroku config:set GOVERSION=goX.Y' to set the Go version to use
 !!    for future builds
 !!
-----> Installing go1.6.2... done