// 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.packageerrors// New returns an error that formats as the given text.funcNew(textstring)error{return&errorString{text}}// errorString is a trivial implementation of error.typeerrorStringstruct{sstring}func(e*errorString)Error()string{returne.s}