From f154da9e12608589e8d5f0508f908a0c3e88a1bb Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Thu, 15 Jan 2015 11:54:00 -0700 Subject: Imported Upstream version 1.4 --- src/pkg/errors/errors.go | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 src/pkg/errors/errors.go (limited to 'src/pkg/errors/errors.go') diff --git a/src/pkg/errors/errors.go b/src/pkg/errors/errors.go deleted file mode 100644 index 3085a7962..000000000 --- a/src/pkg/errors/errors.go +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2011 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Package errors implements functions to manipulate errors. -package errors - -// New returns an error that formats as the given text. -func New(text string) error { - return &errorString{text} -} - -// errorString is a trivial implementation of error. -type errorString struct { - s string -} - -func (e *errorString) Error() string { - return e.s -} -- cgit v1.2.3