Skip to content
forked from ztrue/tracerr

Golang errors with stack trace and source fragments.

License

Notifications You must be signed in to change notification settings

kaylee595/tracerr

 
 

Repository files navigation

相对官方版本做了一点新增

至少需要go1.18及以上版本, 因为加了泛型.

新增内容

  • Wrap1()用于一些函数返回多值的场景当中, 例如下面这个例子.
func ParseTime(layout, v string) (time.Time, error) {
	return Wrap1(time.Parse(layout, v))
}

About

Golang errors with stack trace and source fragments.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 98.4%
  • Makefile 1.6%