errors.go 301 B

123456789101112
  1. // Copyright 2017 The Gogs Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package errors
  5. import "errors"
  6. // New is a wrapper of real errors.New function.
  7. func New(text string) error {
  8. return errors.New(text)
  9. }