Skip to content

Instantly share code, notes, and snippets.

@harlow
harlow / golang_job_queue.md
Last active October 30, 2024 13:27
Job queues in Golang
@mbeale
mbeale / gist:4247971
Created December 10, 2012 02:01
Dynamic JSON sample golang #4
type JSONContainer struct {
data []interface{}
}
func (j *JSONContainer) All() (objects []JSONObject) {
for _, v := range j.data {
objects = append(objects, JSONObject{data: v})
}
return
}