Skip to content

Instantly share code, notes, and snippets.

View ChrisHines's full-sized avatar

Chris Hines ChrisHines

View GitHub Profile
@ChrisHines
ChrisHines / go2errorsFeedback.md
Last active September 1, 2018 21:03
Types cannot implement both the errors.Formatter and fmt.Formatter interfaces

The draft design defines a new errors.Formatter interface as follows.

package errors

// A Formatter formats error messages.
type Formatter interface {
	// Format is implemented by errors to print a single error message.
	// It should return the next error in the error chain, if any.
	Format(p Printer) (next error)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>colorSpaceName</key>
<string>sRGB</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
@ChrisHines
ChrisHines / logfmt-bench_test.go
Created February 20, 2016 03:08
Simple benchmark for three logging packages.
package main
import (
"io/ioutil"
"testing"
"github.com/Sirupsen/logrus"
"github.com/go-kit/kit/log"
"gopkg.in/inconshreveable/log15.v2"
)