-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update to go1.20; pot read/sort (#4)
* sort entry * update dep * pipe * go1.20 * gitee sync --------- Co-authored-by: youthlin <[email protected]>
- Loading branch information
Showing
24 changed files
with
713 additions
and
628 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package errors | ||
|
||
import ( | ||
"errors" | ||
"fmt" | ||
) | ||
|
||
func Errorf(format string, args ...interface{}) error { | ||
return fmt.Errorf(format, args...) | ||
} | ||
|
||
func Wrapf(err error, format string, args ...interface{}) error { | ||
args = append(args, err) | ||
return fmt.Errorf(format+": %w", args...) | ||
} | ||
|
||
func WithSecondaryError(err error, additionalErr error) error { | ||
return fmt.Errorf("%w: %w", err, additionalErr) | ||
} | ||
|
||
func Is(err, target error) bool { | ||
return errors.Is(err, target) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,18 @@ | ||
module github.com/youthlin/t | ||
|
||
go 1.17 | ||
go 1.20 | ||
|
||
require ( | ||
github.com/Xuanwo/go-locale v1.0.0 | ||
github.com/antlr/antlr4/runtime/Go/antlr v0.0.0-20210803070921-b358b509191a | ||
github.com/cockroachdb/errors v1.8.6 | ||
github.com/smartystreets/goconvey v1.6.4 | ||
golang.org/x/text v0.3.7 | ||
github.com/Xuanwo/go-locale v1.1.0 | ||
github.com/antlr4-go/antlr/v4 v4.13.0 | ||
github.com/smartystreets/goconvey v1.8.1 | ||
golang.org/x/text v0.14.0 | ||
) | ||
|
||
require ( | ||
github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f // indirect | ||
github.com/cockroachdb/redact v1.1.1 // indirect | ||
github.com/cockroachdb/sentry-go v0.6.1-cockroachdb.2 // indirect | ||
github.com/gogo/protobuf v1.3.2 // indirect | ||
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 // indirect | ||
github.com/gopherjs/gopherjs v1.17.2 // indirect | ||
github.com/jtolds/gls v4.20.0+incompatible // indirect | ||
github.com/kr/pretty v0.2.1 // indirect | ||
github.com/kr/text v0.2.0 // indirect | ||
github.com/pkg/errors v0.9.1 // indirect | ||
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d // indirect | ||
golang.org/x/sys v0.0.0-20210616094352-59db8d763f22 // indirect | ||
github.com/smarty/assertions v1.15.0 // indirect | ||
golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc // indirect | ||
golang.org/x/sys v0.6.0 // indirect | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.