File: errors.go

package info (click to toggle)
golang-github-go-viper-mapstructure 2.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 348 kB
  • sloc: makefile: 2
file content (11 lines) | stat: -rw-r--r-- 170 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
package errors

import "errors"

func New(text string) error {
	return errors.New(text)
}

func As(err error, target interface{}) bool {
	return errors.As(err, target)
}