Skip to content

Instantly share code, notes, and snippets.

@varver
varver / .Title
Created November 29, 2016 21:57 — forked from congjf/.Title
Using MongoDB in golang with mgo
Using MongoDB in golang with mgo
@varver
varver / geospatial-querying-with-go-and-mongodb.go
Last active November 26, 2016 22:37 — forked from icchan/geospatial-querying-with-go-and-mongodb.go
Geospatial Querying with GoLang and MongoDB
package main
import (
"encoding/json"
"fmt"
"gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"
"log"
)
@varver
varver / golang_job_queue.md
Created September 12, 2016 20:59 — forked from harlow/golang_job_queue.md
Job queues in Golang
package main
import (
"fmt"
)
func decorator(f func(s string)) func(s string) {
return func(s string) {
fmt.Println("Started")
package main
import (
"os"
"encoding/xml"
"strings"
"log"
"runtime/debug"
)