Skip to content

Instantly share code, notes, and snippets.

@tj
tj / .go
Created January 16, 2016 03:32
//line target.rl:1
package target
import (
"fmt"
)
//line target.rl:30
@tj
tj / .go
Created January 14, 2016 14:35
package main
import (
"os"
"time"
"github.com/apex/log"
"github.com/apex/log/handlers/text"
)
@tj
tj / .go
Created January 14, 2016 14:21
// Package multi implements a handler which invokes a number of handlers.
package multi
import (
"github.com/apex/log"
)
// Handler implementation.
type Handler struct {
Handlers []log.Handler
@tj
tj / some.go
Created January 14, 2016 14:06
package main
import (
"errors"
"os"
"time"
"github.com/apex/log"
"github.com/apex/log/handlers/text"
)
package main
import (
"errors"
"os"
"time"
"github.com/apex/log"
"github.com/apex/log/handlers/text"
)
@tj
tj / plain.go
Created January 14, 2016 13:58
log.Infof(“uploading %q for %s”, filename, user.ID)
package main
import (
"errors"
"os"
"time"
"github.com/apex/log"
"github.com/apex/log/handlers/text"
)
https://gist.github.com/tj/6d202d63b0ba673f47a0
https://gist.github.com/tj/6d202d63b0ba673f47a0
@tj
tj / snippets.cson
Last active November 13, 2015 18:32
Atom snippets for Go
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#