Skip to content

Commit

Permalink
replacing imports with Hunted-Labs/errors
Browse files Browse the repository at this point in the history
  • Loading branch information
danweller18 committed Dec 14, 2024
1 parent 83795c2 commit 55e4c07
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 30 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
go-errors/errors
Hunted-Labs/errors
================

[![Build Status](https://travis-ci.org/go-errors/errors.svg?branch=master)](https://travis-ci.org/go-errors/errors)
[![Build Status](https://travis-ci.org/Hunted-Labs/errors.svg?branch=master)](https://travis-ci.org/Hunted-Labs/errors)

Package errors adds stacktrace support to errors in go.

Expand All @@ -16,13 +16,13 @@ Usage
-----

Full documentation is available on
[godoc](https://godoc.org/github.com/go-errors/errors), but here's a simple
[godoc](https://godoc.org/github.com/Hunted-Labs/errors), but here's a simple
example:

```go
package crashy

import "github.com/go-errors/errors"
import "github.com/Hunted-Labs/errors"

var Crashed = errors.Errorf("oh dear")

Expand All @@ -39,7 +39,7 @@ package main
import (
"crashy"
"fmt"
"github.com/go-errors/errors"
"github.com/Hunted-Labs/errors"
)

func main() {
Expand Down Expand Up @@ -79,6 +79,6 @@ This package is licensed under the MIT license, see LICENSE.MIT for details.
> ```
* v1.4.0 *BREAKING* v1.4.0 reverted all changes from v1.3.0 and is identical to v1.2.0
* v1.4.1 no code change, but now without an unnecessary cover.out file.
* v1.4.2 performance improvement to ErrorStack() to avoid unnecessary work https://github.com/go-errors/errors/pull/40
* v1.5.0 add errors.Join() and errors.Unwrap() copying the stdlib https://github.com/go-errors/errors/pull/40
* v1.4.2 performance improvement to ErrorStack() to avoid unnecessary work https://github.com/Hunted-Labs/errors/pull/40
* v1.5.0 add errors.Join() and errors.Unwrap() copying the stdlib https://github.com/Hunted-Labs/errors/pull/40
* v1.5.1 fix build on go1.13..go1.19 (broken by adding Join and Unwrap with wrong build constraints)
44 changes: 22 additions & 22 deletions error.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,36 +9,36 @@
//
// For example:
//
// package crashy
// package crashy
//
// import "github.com/go-errors/errors"
// import "github.com/Hunted-Labs/errors"
//
// var Crashed = errors.Errorf("oh dear")
// var Crashed = errors.Errorf("oh dear")
//
// func Crash() error {
// return errors.New(Crashed)
// }
// func Crash() error {
// return errors.New(Crashed)
// }
//
// This can be called as follows:
//
// package main
// package main
//
// import (
// "crashy"
// "fmt"
// "github.com/go-errors/errors"
// )
// import (
// "crashy"
// "fmt"
// "github.com/Hunted-Labs/errors"
// )
//
// func main() {
// err := crashy.Crash()
// if err != nil {
// if errors.Is(err, crashy.Crashed) {
// fmt.Println(err.(*errors.Error).ErrorStack())
// } else {
// panic(err)
// }
// }
// }
// func main() {
// err := crashy.Crash()
// if err != nil {
// if errors.Is(err, crashy.Crashed) {
// fmt.Println(err.(*errors.Error).ErrorStack())
// } else {
// panic(err)
// }
// }
// }
//
// This package was original written to allow reporting to Bugsnag,
// but after I found similar packages by Facebook and Dropbox, it
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/go-errors/errors
module github.com/Hunted-Labs/errors

go 1.14

Expand Down

0 comments on commit 55e4c07

Please sign in to comment.