Skip to content

Instantly share code, notes, and snippets.

Edward Muller freeformz

Block or report user

Report or block freeformz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:fd02e7771865d0e36e59cd78e568e5e5
00135 (main.go:29) TEXT "".oopsy(SB)
00136 (main.go:29) FUNCDATA $0, "".gcargs·6(SB)
00137 (main.go:29) FUNCDATA $1, "".gclocals·7(SB)
00138 (main.go:29) TYPE s(FP), type.[]int(SB)
00139 (main.go:29) TYPE .autotmp_18-8(SP), type.int(SB)
00140 (main.go:29) TYPE i-16(SP), type.int(SB)
00141 (main.go:30) MOVQ $0, AX // AX = 0
00142 (main.go:34) MOVQ "".s+8(FP), CX // CX = 6 (len of the slice)
00143 (main.go:30) MOVQ AX, "".i-16(SP) // i = 0
00144 (main.go:34) MOVQ CX, ""..autotmp_18-8(SP) // autotmp_18 = 6
View gist:810f8877f68facee80138bf7e6f5952f
00096 (main.go:21) TEXT "".nooops(SB)
00097 (main.go:21) FUNCDATA $0, "".gcargs·4(SB)
00098 (main.go:21) FUNCDATA $1, "".gclocals·5(SB)
00099 (main.go:21) TYPE s(FP), type.[]int(SB)
00100 (main.go:21) TYPE .autotmp_14-8(SP), type.*int(SB)
00101 (main.go:21) TYPE .autotmp_13-16(SP), type.int(SB)
00102 (main.go:21) TYPE v-24(SP), type.int(SB)
00103 (main.go:22) MOVQ $0, AX // AX = 0
00104 (main.go:22) MOVQ "".s(FP), CX // CX = pointer to first value in array
00105 (main.go:22) MOVQ AX, ""..autotmp_13-16(SP) // autotmp_13 = 0
View gist:20e7db50f348cd5ffb38262cdb7da7c1
# func(string, string) (bool, error) does not implement testing.testDeps (missing MatchString method)
View dep_status_missing.md
$ dep status
PROJECT                 MISSING PACKAGES
github.com/boltdb/bolt  [github.com/boltdb/bolt]
View dep_status.md
$ 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
View lock.json
{
"memo": "d741a3bed21fe6cae9d67c523b0a343859882b2f246f2a293e2676cfacd5a2ce",
"projects": [
{
"name": "github.com/gorilla/context",
"version": "v1.1",
"revision": "a85d2e53ba63bdea074dbbbb5983f0516974e87b",
"packages": [
"."
]
View main.go
package main
import (
"net/http"
"os"
"github.com/gorilla/mux"
)
func main() {
View level.go
package level // github.com/go-kit/kit/log/level
type LogLevels int
const (
Debug LogLevels = iota
Info
Warn
Err
View redis.go.md

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
View main_test.go
package main
import (
"context"
"fmt"
"testing"
"github.com/pressly/chi"
)
You can’t perform that action at this time.